Skip to content

Commit

Permalink
Fix & Refactor UI/UX Page [Auth]
Browse files Browse the repository at this point in the history
- [+] fix(auth.tsx): fix condition to set custom endpoint to true if it's app
- [+] refactor(auth.tsx): update accessStore to set useCustomConfig to true
  • Loading branch information
H0llyW00dzZ committed Nov 26, 2023
1 parent b21931c commit d76e744
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ export function AuthPage() {
}; // Reset access code to empty string

useEffect(() => {
if (getClientConfig()?.isApp) {
const clientConfig = getClientConfig();
if (clientConfig?.isApp) { // Force to set custom endpoint to true if it's app
navigate(Path.Settings);
accessStore.update((state) => {
state.useCustomConfig = true;
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
Expand Down

0 comments on commit d76e744

Please sign in to comment.