Skip to content

Commit

Permalink
don't report errors for restore procedure
Browse files Browse the repository at this point in the history
The last message will not receive response so the alert
will report error, even though everything is fine.
  • Loading branch information
paradajz committed Nov 3, 2022
1 parent 93d59e1 commit 96dc327
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/definitions/device/device-store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,9 @@ export const startUpdatesCheck = async (
// Backup

const startRestore = async (file: File): Promise<void> => {
const success = await sendMessagesFromFileWithRateLimiter(
file,
Request.RestoreBackup,
);
await sendMessagesFromFileWithRateLimiter(file, Request.RestoreBackup);

const msg = success
? "Restoring from backup finished"
: "Restoring from backup finished with errors";
alert(msg);
alert("Restoring from backup finished");
};

const startBackup = async (): Promise<void> => {
Expand Down

0 comments on commit 96dc327

Please sign in to comment.