mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 21:53:13 +08:00
added an error message when result could not be saved
This commit is contained in:
parent
789935ab50
commit
6c7d8e44d6
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@ function db_testCompleted(obj) {
|
|||
if (user) {
|
||||
uid = user.uid;
|
||||
}
|
||||
db.collection('results').add(obj)
|
||||
db.collection('results').add(obj).catch(e =>{
|
||||
showNotification("Error saving result! Please contact Miodec on Discord.");
|
||||
})
|
||||
}
|
||||
|
||||
async function db_getUserResults() {
|
||||
|
|
Loading…
Reference in a new issue