Commit 91da96e7 authored by Paul Razvan Berg's avatar Paul Razvan Berg Committed by Noah Zinsmeister

Add dependency array to "Identicon" side effect (#561)

parent e179a475
...@@ -22,7 +22,7 @@ export default function Identicon() { ...@@ -22,7 +22,7 @@ export default function Identicon() {
ref.current.innerHTML = '' ref.current.innerHTML = ''
ref.current.appendChild(Jazzicon(16, parseInt(account.slice(2, 10), 16))) ref.current.appendChild(Jazzicon(16, parseInt(account.slice(2, 10), 16)))
} }
}) }, [account])
return <StyledIdenticon ref={ref} /> return <StyledIdenticon ref={ref} />
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment