Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix error when restoring an unencrypted backup

ammarahm-ed7a89eef52957
diff --git a/apps/mobile/src/components/RestoreDialog/index.js b/apps/mobile/src/components/RestoreDialog/index.js
index 919892a25..5af195dcd 100644
--- a/apps/mobile/src/components/RestoreDialog/index.js
+++ b/apps/mobile/src/components/RestoreDialog/index.js
@@ -132,7 +132,7 @@ const RestoreDataComponent = ({close, setRestoring, restoring}) => {
}
);
} else {
- await restoreBackup(backup, value);
+ await restoreBackup(backup);
close();
}
} catch (e) {
@@ -244,8 +244,7 @@ const RestoreDataComponent = ({close, setRestoring, restoring}) => {
setRestoring(false);
initialize();
ToastEvent.show({
- heading: 'Restore successful',
- message: 'Your backup data has been restored successfully.',
+ heading: 'Backup restored successfully.',
type: 'success',
context: 'global'
});