Skip to content

Commit 927e4dc

Browse files
committed
reset custom fee slider value
1 parent ed9aae2 commit 927e4dc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/pages/send_view/send_view.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,10 @@ class _SendViewState extends ConsumerState<SendView> {
10871087
ref.refresh(pIsExchangeAddress);
10881088
});
10891089
isCustomFee.addListener(() {
1090-
if (!isCustomFee.value) ethFee = null;
1090+
if (!isCustomFee.value) {
1091+
customFeeRate = 1;
1092+
ethFee = null;
1093+
}
10911094
});
10921095
hasFees = coin is! Epiccash && coin is! NanoCurrency && coin is! Tezos;
10931096
_currentFee = 0.toAmountAsRaw(fractionDigits: coin.fractionDigits);

lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,7 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
16661666
onCustomFeeSliderChanged: (value) => customFeeRate = value,
16671667
onCustomFeeOptionChanged: (value) {
16681668
isCustomFee = value;
1669+
customFeeRate = 1;
16691670
ethFee = null;
16701671
},
16711672
onCustomEip1559FeeOptionChanged: (value) => ethFee = value,

0 commit comments

Comments
 (0)