Skip to content

Commit

Permalink
Only render fees once in the fee detail modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Jan 18, 2024
1 parent 21d738f commit 274b1d3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/apps/fee-list/stackable-fees/fee-details-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as React from "react";
import { FC } from "react";
import { FeeV2 } from "../../../core/fbs/model";
import { useText } from "../../../core/utils/text";
import { FaustId } from "../../../core/utils/types/ids";
import { dateFormatCustom } from "../../../core/configuration/date-format.json";
import StackableFeesList from "./stackable-fees-list";
import GroupModalContent from "../../../components/GroupModal/GroupModalContent";
Expand Down Expand Up @@ -47,14 +46,7 @@ const FeeDetailsContent: FC<FeeDetailsContentProps> = ({ feeDetailsData }) => {
>
<div />
</GroupModalContent>
{materials.map(({ recordId }) => (
<StackableFeesList
reasonForFee={reasonMessage}
materials={materials}
key={recordId}
item={{ faust: `${recordId}` as FaustId }}
/>
))}
<StackableFeesList reasonForFee={reasonMessage} materials={materials} />
</div>
);
};
Expand Down

0 comments on commit 274b1d3

Please sign in to comment.