youssefreda9 commited on
Commit
c46654e
·
1 Parent(s): fa40ede

Fix: Guest login navigates to home/landing page instead of editor

Browse files
Files changed (1) hide show
  1. src/js/auth/auth-ui.js +2 -2
src/js/auth/auth-ui.js CHANGED
@@ -25,7 +25,7 @@ function bindAuthUIEvents() {
25
  alert('حدث خطأ أثناء الدخول كضيف. حاول مجددًا.');
26
  guestBtn.textContent = originalText;
27
  } else {
28
- if (typeof showPage === 'function') showPage('editor');
29
  }
30
  });
31
  }
@@ -39,7 +39,7 @@ function bindAuthUIEvents() {
39
  closeAuthGateSheet();
40
  showAuthOfflineBanner(false);
41
  if (result && (result.success || result.offline)) {
42
- if (typeof showPage === 'function') showPage('editor');
43
  }
44
  });
45
  }
 
25
  alert('حدث خطأ أثناء الدخول كضيف. حاول مجددًا.');
26
  guestBtn.textContent = originalText;
27
  } else {
28
+ if (typeof showPage === 'function') showPage('home');
29
  }
30
  });
31
  }
 
39
  closeAuthGateSheet();
40
  showAuthOfflineBanner(false);
41
  if (result && (result.success || result.offline)) {
42
+ if (typeof showPage === 'function') showPage('home');
43
  }
44
  });
45
  }