Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Feb 29, 2024
1 parent ec2b94c commit 07eb158
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Attachments/AttachmentView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ function AttachmentView({
const encryptedSourceUrl = isAuthTokenRequired ? addEncryptedAuthTokenToURL(source) : source;

const onPDFLoadComplete = (path) => {
if (path && (transaction?.transactionID ?? reportActionID)) {
CachedPDFPaths.add(transaction?.transactionID ?? reportActionID, path);
const id = (transaction && transaction.transactionID) || reportActionID;
if (path && id) {
CachedPDFPaths.add(id, path);
}
if (!loadComplete) {
setLoadComplete(true);
Expand Down

0 comments on commit 07eb158

Please sign in to comment.