Skip to content

Commit

Permalink
[#39] Download cascade file without async
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Jul 25, 2023
1 parent 907ae01 commit e20cc36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/pages/AuthForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ const AuthForm = ({ navigation }) => {

// download cascades files
if (formRes?.data?.cascades?.length) {
formRes.data.cascades.forEach(async (cascadeFile) => {
formRes.data.cascades.forEach((cascadeFile) => {
const downloadUrl = api.getConfig().baseURL + cascadeFile;
await cascades.download(downloadUrl, cascadeFile);
cascades.download(downloadUrl, cascadeFile);
});
}
});
Expand Down

0 comments on commit e20cc36

Please sign in to comment.