Skip to content

Commit 927dacd

Browse files
ervwalterclaude
andcommitted
🐛 fix: resolve mobile logout issue on iPhone
Fixed logout button not working on iPhone in mobile menu by ensuring the menu closes before the async signOut operation. The race condition was causing the signOut to be interrupted when the menu closed. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d61876e commit 927dacd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/components/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ export function Header() {
9797
) : (
9898
<button
9999
className={`text-left px-3 py-2 text-white hover:bg-brand-300 rounded ${visibility}`}
100-
onClick={() => {
101-
signOut();
100+
onClick={async () => {
102101
setMobileMenuOpen(false);
102+
await signOut();
103103
}}
104104
>
105105
Log Out

0 commit comments

Comments
 (0)