using function instead

This commit is contained in:
Miodec 2021-09-11 13:11:15 +01:00
parent 4ad543c86e
commit c66f8ad731
2 changed files with 5 additions and 1 deletions

View file

@ -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");

View file

@ -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;