Skip to content

Commit

Permalink
Fix new user error
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Dec 17, 2021
1 parent 829ba24 commit 397d625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const colors = (theme: Theme = 'light') => {
theme = 'dark';
}

if (userInfo.theme === 'dark') {
if (userInfo && userInfo.theme === 'dark') {
theme = 'dark';
}

Expand Down

0 comments on commit 397d625

Please sign in to comment.