Skip to content

Commit

Permalink
fix: render nullish account
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Apr 21, 2024
1 parent 7c74f05 commit c8a0e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Expand Up @@ -127,14 +127,14 @@ function HomeButton() {

function Account() {
const { account } = useAccountStore()
if (!account) return null

// Hack to bypass truncated text mounting issues.
const [key, setKey] = useState(0)
useLayoutEffect(() => {
requestAnimationFrame(() => setKey((key) => key + 1))
}, [])

if (!account) return null
return (
<Link to="/" style={{ height: '100%' }}>
<Box
Expand Down

0 comments on commit c8a0e49

Please sign in to comment.