Skip to content

Commit c8a0e49

Browse files
committed
fix: render nullish account
1 parent 7c74f05 commit c8a0e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ function HomeButton() {
127127

128128
function Account() {
129129
const { account } = useAccountStore()
130-
if (!account) return null
131130

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

137+
if (!account) return null
138138
return (
139139
<Link to="/" style={{ height: '100%' }}>
140140
<Box

0 commit comments

Comments
 (0)