forked from XiaoMo/ChatGPT-Next-Web
Revert "Fix & Refactor UI/UX Page [Auth]"
This reverts commitd76e744eab
. Reason: Move to commitsbf5e7aaa48
This commit is contained in:
parent
bf5e7aaa48
commit
7df868e22a
@ -24,12 +24,8 @@ export function AuthPage() {
|
|||||||
}; // Reset access code to empty string
|
}; // Reset access code to empty string
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const clientConfig = getClientConfig();
|
if (getClientConfig()?.isApp) {
|
||||||
if (clientConfig?.isApp) { // Force to set custom endpoint to true if it's app
|
|
||||||
navigate(Path.Settings);
|
navigate(Path.Settings);
|
||||||
accessStore.update((state) => {
|
|
||||||
state.useCustomConfig = true;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, []);
|
}, []);
|
||||||
|
Loading…
Reference in New Issue
Block a user