Skip to content

Commit

Permalink
fix: History screen filter with funds estrictly > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
juanky201271 committed Feb 7, 2025
1 parent 24cf975 commit 6b21183
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions components/History/History.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,9 @@ const History: React.FunctionComponent<HistoryProps> = ({
if (!valueTransfers) {
return [] as ValueTransferType[];
}
// strictly show VT's with some amount on it.
return valueTransfers
.filter((vt: ValueTransferType) =>
filter === FilterEnum.withFunds
? vt.amount > Utils.parseStringLocaleToNumberFloat(Utils.getZenniesDonationAmount())
: true,
)
.filter((vt: ValueTransferType) => (filter === FilterEnum.withFunds ? vt.amount > 0 : true))
.slice(0, numVt);
}, [valueTransfers, numVt, filter]);

Expand Down

0 comments on commit 6b21183

Please sign in to comment.