fix done variable at app start

This commit is contained in:
Rushikesh Tote 2022-03-14 18:31:22 +05:30
parent ccea382545
commit 2fec2ce6a3
No known key found for this signature in database
GPG key ID: E4461ACF821B1DA8

View file

@ -117,6 +117,7 @@ export const getToUploadFiles = async () => {
};
export const getIfToUploadFilesExists = async () => {
const done = store.get('done') as boolean;
return done ? false : true;
const doneUploadingFiles = store.get('done') as boolean;
if (doneUploadingFiles === undefined) return false;
return !doneUploadingFiles;
};