mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 21:09:18 +08:00
using optionals
This commit is contained in:
parent
e8c6fcbfcd
commit
cfdb9014f3
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export async function getDataAndInit() {
|
|||
0
|
||||
);
|
||||
}
|
||||
let msg = e?.response?.data?.message ?? e.response.data ?? e.message;
|
||||
let msg = e?.response?.data?.message ?? e?.response?.data ?? e?.message;
|
||||
Notifications.add("Failed to get user data: " + msg, -1);
|
||||
|
||||
// $("#top #menu .account .icon").html('<i class="fas fa-fw fa-times"></i>');
|
||||
|
|
Loading…
Reference in a new issue