Skip to content

Commit

Permalink
fix: custom fee on Ledger pages (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricio0312rev authored Jun 18, 2024
1 parent d04a18b commit 193419a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ledger/ApproveWithLedger.blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ interface Props {
}

export const VoteLedgerApprovalBody = ({ wallet, state }: Props) => {
const { session, amount, receiverAddress } = state;
const { session, amount, receiverAddress, fee: customFee } = state;

const {
values: { hasHigherCustomFee, hasLowerCustomFee },
} = useSendTransferForm(wallet, {
session,
amount: amount ?? 0,
receiverAddress,
customFee,
});

const { convert } = useExchangeRate({
Expand All @@ -53,7 +54,7 @@ export const VoteLedgerApprovalBody = ({ wallet, state }: Props) => {
isApproved={false}
showFiat={wallet.network().isLive()}
wallet={wallet}
fee={fee}
fee={customFee || fee}
convertedFee={convert(fee)}
exchangeCurrency={wallet.exchangeCurrency() ?? 'USD'}
network={getNetworkCurrency(wallet.network())}
Expand Down

0 comments on commit 193419a

Please sign in to comment.