Skip to content

Commit

Permalink
fix: not showing password modal if default missed
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao committed Nov 17, 2024
1 parent ec2d636 commit 56b36c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Files/ObjectDownloadModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const ObjectDownloadModal = ({
const passwordToUse = password ?? undefined;

try {
fetchFile(metadata.dataCid, passwordToUse);
await fetchFile(metadata.dataCid, passwordToUse);
onClose();
} catch (e) {
if (e instanceof InvalidDecryptKey) {
Expand Down

0 comments on commit 56b36c9

Please sign in to comment.