Skip to content

Commit

Permalink
adjust comment position
Browse files Browse the repository at this point in the history
  • Loading branch information
wildan-m committed Sep 29, 2024
1 parent ca1e6d5 commit 4167773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ function AttachmentCarousel({report, source, onNavigate, setDownloadButtonVisibi
let attachmentIndex = targetAttachments.findIndex(compareImage);
const prevAttachmentIndex = attachments.findIndex(compareImage);

// If no matching attachment with the same index, dismiss the modal
if (!targetAttachments[attachmentIndex] && targetAttachments[prevAttachmentIndex]) {
attachmentIndex = prevAttachmentIndex;
}

// If no matching attachment with the same index, dismiss the modal
if (!targetAttachments[attachmentIndex] && attachments[prevAttachmentIndex]) {
Navigation.dismissModal();
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Attachments/AttachmentCarousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ function AttachmentCarousel({report, source, onNavigate, setDownloadButtonVisibi
let attachmentIndex = targetAttachments.findIndex(compareImage);
const prevAttachmentIndex = attachments.findIndex(compareImage);

// If no matching attachment with the same index, dismiss the modal
if (!targetAttachments[attachmentIndex] && targetAttachments[prevAttachmentIndex]) {
attachmentIndex = prevAttachmentIndex;
}

// If no matching attachment with the same index, dismiss the modal
if (!targetAttachments[attachmentIndex] && attachments[prevAttachmentIndex]) {
Navigation.dismissModal();
} else {
Expand Down

0 comments on commit 4167773

Please sign in to comment.