diff --git a/src/libs/fileDownload/index.native.js b/src/libs/fileDownload/index.native.js index bf474351a721..31690b7bec36 100644 --- a/src/libs/fileDownload/index.native.js +++ b/src/libs/fileDownload/index.native.js @@ -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);