Skip to content

Commit

Permalink
fix: sneaky double showError remove + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Jan 27, 2025
1 parent ffa5c6d commit 911d388
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion ts/components/dialog/SessionSetPasswordDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ export class SessionSetPasswordDialog extends Component<Props, State> {
},
() => this.showError()
);
this.showError();
return false;
}
return true;
Expand Down
6 changes: 5 additions & 1 deletion ts/hooks/useEncryptedFileFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export const useEncryptedFileFetch = (
setLoading(true);

try {
const decryptedUrl = await DecryptedAttachmentsManager.getDecryptedMediaUrl(mediaUrl, contentType, isAvatar);
const decryptedUrl = await DecryptedAttachmentsManager.getDecryptedMediaUrl(
mediaUrl,
contentType,
isAvatar
);
setUrlToLoad(decryptedUrl);
} catch (error) {
setUrlToLoad('');
Expand Down

0 comments on commit 911d388

Please sign in to comment.