Skip to content

Commit

Permalink
fix: show permission error only when permission is denied or missing
Browse files Browse the repository at this point in the history
  • Loading branch information
aswin-s committed Dec 20, 2021
1 parent f697829 commit 83f7f75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/fileDownload/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ export default function fileDownload(url, fileName) {
hasAndroidPermission().then((hasPermission) => {
if (hasPermission) {
handleDownload(url, fileName).then(() => resolve());
} else {
showAlert(permissionError);
}

showAlert(permissionError);
return resolve();
}).catch(() => {
showAlert(permissionError);
Expand Down

0 comments on commit 83f7f75

Please sign in to comment.