mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
checking response data for message
This commit is contained in:
parent
857d1354ab
commit
d4509e7ec9
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export async function getDataAndInit() {
|
|||
0
|
||||
);
|
||||
}
|
||||
let msg = e?.response?.data?.message ?? 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