From 050f604dbc1fc323ff8cdb8a47acd3afbcb51a46 Mon Sep 17 00:00:00 2001 From: guillermo dieguez Date: Wed, 27 Nov 2024 13:28:58 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20app:=20fix=20wrong=20amount=20in?= =?UTF-8?q?=20card=20activity=20details?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/nine-walls-build.md | 5 +++++ src/components/activity/details/OperationDetails.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/nine-walls-build.md diff --git a/.changeset/nine-walls-build.md b/.changeset/nine-walls-build.md new file mode 100644 index 00000000..b6a84813 --- /dev/null +++ b/.changeset/nine-walls-build.md @@ -0,0 +1,5 @@ +--- +"@exactly/mobile": patch +--- + +🐛 fix wrong amount in card activity details diff --git a/src/components/activity/details/OperationDetails.tsx b/src/components/activity/details/OperationDetails.tsx index 66af067f..d04c7f5e 100644 --- a/src/components/activity/details/OperationDetails.tsx +++ b/src/components/activity/details/OperationDetails.tsx @@ -62,7 +62,7 @@ export default function OperationDetails({ item }: { item: CreditActivity | Debi {item.mode === 1 && `1x ${Number(item.amount + item.borrow.fee).toFixed(2)}`} {item.mode > 1 && `${(item as InstallmentsActivity).borrow.installments.length}x`}  {item.mode > 1 && - Number(item.amount / (item as InstallmentsActivity).borrow.installments.length).toFixed(2)} + Number(item.usdAmount / (item as InstallmentsActivity).borrow.installments.length).toFixed(2)}  USDC