Skip to content

Commit 481e3e8

Browse files
chore: debug apple button
1 parent 59c298c commit 481e3e8

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

components/AuthModal.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,22 @@ export const AuthModal: React.FC<AuthModalProps> = ({
385385
type="button"
386386
intent="secondary"
387387
size="medium"
388-
onClick={handleAppleSignIn}
388+
onClick={(e) => {
389+
// Debug: Log that button was clicked
390+
if (typeof window !== "undefined") {
391+
try {
392+
sessionStorage.setItem(
393+
"apple_button_clicked",
394+
new Date().toISOString(),
395+
);
396+
(window as any).appleButtonClicked = true;
397+
} catch (err) {
398+
// Ignore storage errors
399+
}
400+
}
401+
console.log("Apple button clicked!"); // This should work even in production
402+
handleAppleSignIn();
403+
}}
389404
disabled={isLoading}
390405
className="w-full flex items-center justify-center gap-3 relative"
391406
>

0 commit comments

Comments
 (0)