Skip to content

Commit 6bc590f

Browse files
prettier
1 parent 7dd09b6 commit 6bc590f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/UI/navigation/UserIcon.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ export const UserIcon: FC<UserIconProps> = ({ anchorRef, buttonRef }) => {
4343
const fetchUser = async () => {
4444
try {
4545
const data = await getUser()
46-
if (!data)
46+
if (!data) {
4747
throw new Error('Unable to fetch the currently logged in user')
48+
}
4849
setUser(data)
4950
sessionStorage.setItem('twitch_user', JSON.stringify(data))
5051
} catch (error: any) {

0 commit comments

Comments
 (0)