Skip to content

Commit

Permalink
Feat UI/UX Page [Settings]
Browse files Browse the repository at this point in the history
- [+] feat(settings.tsx): set useCustomConfig to true if clientConfig.isApp is truthy
  • Loading branch information
H0llyW00dzZ committed Nov 27, 2023
1 parent d76e744 commit bf5e7aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,11 @@ export function Settings() {
navigate(Path.Home);
}
};
if (clientConfig?.isApp) { // Force to set custom endpoint to true if it's app
accessStore.update((state) => {
state.useCustomConfig = true;
});
}
document.addEventListener("keydown", keydownEvent);
return () => {
document.removeEventListener("keydown", keydownEvent);
Expand Down

0 comments on commit bf5e7aa

Please sign in to comment.