Skip to content

Commit

Permalink
Merge pull request #4906 from EdgeApp/matthew/fixNoChangeFees
Browse files Browse the repository at this point in the history
Fix noChangeFees handling
  • Loading branch information
peachbits authored Mar 15, 2024
2 parents 2cb6086 + fe7ba12 commit 571151c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/scenes/SendScene2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ const SendComponent = (props: Props) => {
})

const handleFlipInputModal = (index: number, spendTarget: EdgeSpendTarget) => () => {
const { noChangeMiningFee } = getSpecialCurrencyInfo(pluginId)
Airship.show<FlipInputModalResult>(bridge => (
<FlipInputModal2
ref={flipInputModalRef}
Expand All @@ -331,7 +332,7 @@ const SendComponent = (props: Props) => {
forceField={fieldChanged}
onAmountsChanged={handleAmountsChanged(spendTarget)}
onMaxSet={handleSetMax(index)}
onFeesChange={handleFeesChange}
onFeesChange={noChangeMiningFee ? undefined : handleFeesChange}
wallet={coreWallet}
tokenId={tokenId}
feeNativeAmount={feeNativeAmount}
Expand Down Expand Up @@ -480,7 +481,11 @@ const SendComponent = (props: Props) => {
const feeSyntaxStyle = transactionFee.fiatStyle

return (
<RowUi4 rightButtonType={noChangeMiningFee || lockTilesMap.fee ? 'none' : 'touchable'} title={`${lstrings.string_fee}:`} onPress={handleFeesChange}>
<RowUi4
rightButtonType={noChangeMiningFee || lockTilesMap.fee ? 'none' : 'touchable'}
title={`${lstrings.string_fee}:`}
onPress={noChangeMiningFee ? undefined : handleFeesChange}
>
{processingAmountChanged ? (
<View style={styles.calcFeeView}>
<EdgeText
Expand Down

0 comments on commit 571151c

Please sign in to comment.