File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments