From ffb2a49a940b01a680e4b182750eebfb63d3ebf3 Mon Sep 17 00:00:00 2001 From: Bill He Date: Wed, 29 Nov 2023 22:35:40 -0800 Subject: [PATCH] fix fees --- .../DepositForm/DepositButtonAndReceipt.tsx | 6 +++--- .../WithdrawForm/WithdrawButtonAndReceipt.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/forms/AccountManagementForms/DepositForm/DepositButtonAndReceipt.tsx b/src/views/forms/AccountManagementForms/DepositForm/DepositButtonAndReceipt.tsx index a64609a..5cd5815 100644 --- a/src/views/forms/AccountManagementForms/DepositForm/DepositButtonAndReceipt.tsx +++ b/src/views/forms/AccountManagementForms/DepositForm/DepositButtonAndReceipt.tsx @@ -109,6 +109,8 @@ export const DepositButtonAndReceipt = ({ ? stringGetter({ key: STRING_KEYS.HIDE_ALL_DETAILS }) : stringGetter({ key: STRING_KEYS.SHOW_ALL_DETAILS }); + const totalFees = (summary?.bridgeFee || 0) + (summary?.gasFee || 0); + const submitButtonReceipt = [ { key: 'equity', @@ -158,9 +160,7 @@ export const DepositButtonAndReceipt = ({ { key: 'total-fees', label: {stringGetter({ key: STRING_KEYS.TOTAL_FEES })}, - value: typeof summary?.bridgeFee === 'number' || typeof summary?.gasFee === 'number' && ( - - ), + value: , subitems: feeSubitems, }, { diff --git a/src/views/forms/AccountManagementForms/WithdrawForm/WithdrawButtonAndReceipt.tsx b/src/views/forms/AccountManagementForms/WithdrawForm/WithdrawButtonAndReceipt.tsx index bef4fb3..3a7b467 100644 --- a/src/views/forms/AccountManagementForms/WithdrawForm/WithdrawButtonAndReceipt.tsx +++ b/src/views/forms/AccountManagementForms/WithdrawForm/WithdrawButtonAndReceipt.tsx @@ -89,14 +89,14 @@ export const WithdrawButtonAndReceipt = ({ const showSubitemsToggle = showFeeBreakdown ? stringGetter({ key: STRING_KEYS.HIDE_ALL_DETAILS }) : stringGetter({ key: STRING_KEYS.SHOW_ALL_DETAILS }); + + const totalFees = (summary?.bridgeFee || 0) + (summary?.gasFee || 0); const submitButtonReceipt = [ { key: 'total-fees', label: {stringGetter({ key: STRING_KEYS.TOTAL_FEES })}, - value: typeof summary?.bridgeFee === 'number' || typeof summary?.gasFee === 'number' && ( - - ), + value: , subitems: feeSubitems, }, {