Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
fix: removes cleanup
Browse files Browse the repository at this point in the history
- the cleanup introduced in myOffers PR breaks usability
of the CheckoutContext!
  • Loading branch information
jurajpiar committed Sep 29, 2020
1 parent 3762865 commit 2b5616f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/pages/storage/buy/StorageOffersPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC, useContext, useEffect } from 'react'
import React, { FC, useContext } from 'react'
import { useHistory } from 'react-router-dom'
import StorageFilters from 'components/organisms/filters/storage/StorageFilters'
import MarketPageTemplate from 'components/templates/MarketPageTemplate'
Expand Down Expand Up @@ -29,13 +29,6 @@ const StorageOffersPage: FC = () => {
dispatch,
} = useContext<StorageOffersContextProps>(StorageOffersContext)

useEffect(() => () => {
dispatch({
type: 'CLEAN_UP',
payload: {},
})
}, [dispatch])

const collection = items
.map<MarketplaceItem>((item) => {
const {
Expand Down

0 comments on commit 2b5616f

Please sign in to comment.