-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,7 @@ export const Dos: DosFn = (element: HTMLDivElement, | |
const store = makeStore(nonSerializableStore, options); | ||
|
||
|
||
if (store.getState().auth.account?.email === "[email protected]" || | ||
store.getState().auth.account?.email === "[email protected]") { | ||
if (store.getState().auth.account?.email === "[email protected]") { | ||
store.dispatch(dosSlice.actions.setSockdriveWrite(false)); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,12 +57,10 @@ export const authSlice = createSlice({ | |
setRefreshToken(action.payload.token.refresh_token); | ||
state.account = action.payload; | ||
state.account.premium = state.account.premium || | ||
state.account.email === "[email protected]" || | ||
state.account.email === "[email protected]"; | ||
state.account.email === "[email protected]"; | ||
lStorage.setItem(cachedAccount, JSON.stringify(action.payload)); | ||
(action as unknown as DosAction).asyncStore((store) => { | ||
if (action.payload.email === "[email protected]" || | ||
action.payload.email === "[email protected]") { | ||
if (action.payload.email === "[email protected]") { | ||
store.dispatch(dosSlice.actions.setSockdriveWrite(false)); | ||
} | ||
getCache(action.payload.email) | ||
|