mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
Fix 'type error: failed to fetch' in congrats screen
The previously-added catch was not working due to the implicit error handling of the proto methods. Closes #2895
This commit is contained in:
parent
b726e28229
commit
d900506003
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
if (refreshPeriodically) {
|
||||
setInterval(async () => {
|
||||
try {
|
||||
info = await congratsInfo({});
|
||||
info = await congratsInfo({}, { alertOnError: false });
|
||||
} catch {
|
||||
console.log("congrats fetch failed");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue