fix: no fees for (ba)nano

This commit is contained in:
julian 2023-06-08 14:00:31 -06:00
parent 2c49f9f9ec
commit a3dcdf6fcd

View file

@ -436,36 +436,38 @@ class _ConfirmTransactionViewState
],
),
),
const SizedBox(
height: 12,
),
RoundedWhiteContainer(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"Transaction fee",
style: STextStyles.smallMed12(context),
),
Text(
ref.watch(pAmountFormatter(coin)).format(
(transactionInfo["fee"] is Amount
? transactionInfo["fee"] as Amount
: (transactionInfo["fee"] as int)
.toAmountAsRaw(
fractionDigits: ref.watch(
managerProvider.select(
(value) => value.coin.decimals,
),
),
)),
),
style: STextStyles.itemSubtitle12(context),
textAlign: TextAlign.right,
),
],
if (coin != Coin.banano && coin != Coin.nano)
const SizedBox(
height: 12,
),
if (coin != Coin.banano && coin != Coin.nano)
RoundedWhiteContainer(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"Transaction fee",
style: STextStyles.smallMed12(context),
),
Text(
ref.watch(pAmountFormatter(coin)).format(
(transactionInfo["fee"] is Amount
? transactionInfo["fee"] as Amount
: (transactionInfo["fee"] as int)
.toAmountAsRaw(
fractionDigits: ref.watch(
managerProvider.select(
(value) => value.coin.decimals,
),
),
)),
),
style: STextStyles.itemSubtitle12(context),
textAlign: TextAlign.right,
),
],
),
),
),
const SizedBox(
height: 12,
),