mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2025-12-23 23:17:55 -05:00
feat: Set default server region to global if not configured during auth check
This commit is contained in:
@@ -195,6 +195,9 @@ export function handleFetchAuthed() {
|
||||
try {
|
||||
TokenService.getToken("is_authed").then((value) => {
|
||||
let isAuthed = value === "yes";
|
||||
if (isAuthed && !ConfigService.getItem("serverRegion")) {
|
||||
ConfigService.setItem("serverRegion", "global");
|
||||
}
|
||||
dispatch(handleAuthed(isAuthed));
|
||||
});
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user