@@ -90,16 +97,7 @@ const CollectionList: NextPage = () => {
)}
)
- }, [clearFlag, wallet.address])
-
- const clearMyCollections = () => {
- console.log('Cleared!')
- if (typeof localStorage !== 'undefined') {
- localStorage['collections'] = JSON.stringify(allCollections.filter((c) => Object.keys(c)[0] !== wallet.address))
- myCollectionList = []
- setClearFlag(!clearFlag)
- }
- }
+ }, [myCollections, wallet.address])
return (