Skip to content

Commit

Permalink
feat: [IOCOM-658] Remove the F24 section on cancelled SEND message (#…
Browse files Browse the repository at this point in the history
…5191)

## Short description
This PR removes the F24 section on cancelled SEND messages

## List of changes proposed in this pull request
- used `isCancelled` to render the F24 section

## How to test
Using `io-dev-api-server` generate a cancelled SEND message with
multiple F24. Check that the F24 section is not rendered

Co-authored-by: Andrea <[email protected]>
  • Loading branch information
adelloste and Vangaorth authored Nov 3, 2023
1 parent e58b66e commit d664ad1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ts/features/pn/components/MessageDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const MessageDetails = ({

const maxVisiblePaymentCount = maxVisiblePaymentCountGenerator();
const scrollViewRef = React.createRef<ScrollView>();

return (
<>
<ScrollView
Expand Down Expand Up @@ -147,12 +148,12 @@ export const MessageDetails = ({
presentPaymentsBottomSheetRef={presentPaymentsBottomSheetRef}
/>

{RA.isNonEmpty(f24List) && (
{!isCancelled && RA.isNonEmpty(f24List) ? (
<>
<MessageF24 attachments={f24List} openPreview={openAttachment} />
<VSpacer size={24} />
</>
)}
) : null}

<PnMessageDetailsSection
title={I18n.t("features.pn.details.infoSection.title")}
Expand Down

0 comments on commit d664ad1

Please sign in to comment.