We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d2932d commit bb81416Copy full SHA for bb81416
2 files changed
src/components/Layout/Header.tsx
@@ -97,13 +97,13 @@ export const Header = () => {
97
</CircleButton>
98
<CircleButton
99
onClick={() => {
100
- if (isConnected()) {
+ if (isConnected) {
101
navigate('/settings/general')
102
} else {
103
openAuthModal()
104
}
105
}}>
106
- {isConnected() ? (
+ {isConnected ? (
107
<img className="profileImage" src={user?.imageURL} />
108
) : (
109
<FaUser style={{ fontSize: '1.2em' }} />
src/features/auth/hooks/useAuth.ts
@@ -8,7 +8,7 @@ export const useAuth = () => {
8
const authStore = AuthStore()
9
const { user, providerId, initState, clear } = authStore
10
11
- const isConnected = () => user != null
+ const isConnected = user != null
12
13
const logout = async () => {
14
trackUserDisconnect()
0 commit comments