Skip to content

Commit

Permalink
SaveLocalIdentities: fix dependencies on callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
AquiGorka committed May 9, 2019
1 parent d48188a commit b17f2e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SaveLocalIdentities/SaveLocalIdentities.js
Expand Up @@ -53,7 +53,7 @@ const SaveLocalIdentities = React.memo(({ dao, wrapper, onSave, toast }) => {
// opens up preferences
onSave()
},
[labels]
[wrapper, toast, onSave, handleClose]
)

const labelsIndex = React.useMemo(
Expand All @@ -72,7 +72,7 @@ const SaveLocalIdentities = React.memo(({ dao, wrapper, onSave, toast }) => {
} catch (e) {
console.warn('There was an error parsing the label data: ', e)
}
}, [wrapper])
}, [wrapper, labelsIndex])

if (!labels.length) {
return null
Expand Down

0 comments on commit b17f2e6

Please sign in to comment.