mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 07:46:15 +08:00
using function instead
This commit is contained in:
parent
4ad543c86e
commit
c66f8ad731
|
@ -92,7 +92,7 @@ export function signIn() {
|
|||
if (response.status !== 200) {
|
||||
Notifications.add(response.data.message);
|
||||
} else {
|
||||
TestLogic.notSignedInLastResult = null;
|
||||
TestLogic.clearNotSignedInResult();
|
||||
Notifications.add("Last test result saved", 1);
|
||||
}
|
||||
// UI.changePage("account");
|
||||
|
|
|
@ -51,6 +51,10 @@ export function toggleGlarses() {
|
|||
|
||||
export let notSignedInLastResult = null;
|
||||
|
||||
export function clearNotSignedInResult() {
|
||||
notSignedInLastResult = null;
|
||||
}
|
||||
|
||||
export function setNotSignedInUid(uid) {
|
||||
notSignedInLastResult.uid = uid;
|
||||
delete notSignedInLastResult.hash;
|
||||
|
|
Loading…
Reference in a new issue