fix done variable at app start
This commit is contained in:
parent
ccea382545
commit
2fec2ce6a3
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue