Skip to content

Commit 55894bb

Browse files
committed
feat: Update isConnected check to use direct reference
1 parent d3a531e commit 55894bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Layout/AppLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const AppLayout = () => {
1414
const postStreakMutation = usePostStreak()
1515

1616
useEffect(() => {
17-
if (isConnected()) {
17+
if (isConnected) {
1818
postStreakMutation.mutateAsync(undefined).then((data) => {
1919
setStreak(data.streak)
2020
})

0 commit comments

Comments
 (0)