only show epic cancel button if no confirmations

This commit is contained in:
julian 2023-09-11 12:48:32 -06:00
parent 8b4f25e0f3
commit 6f06bb834f

View file

@ -1577,11 +1577,7 @@ class _TransactionDetailsViewState
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
floatingActionButton: (coin == Coin.epicCash &&
_transaction.isConfirmed(
currentHeight,
coin.requiredConfirmations,
) ==
false &&
_transaction.getConfirmations(currentHeight) < 1 &&
_transaction.isCancelled == false)
? ConditionalParent(
condition: isDesktop,