From 500724b3e5a0e64727db87df0e29e2455502e582 Mon Sep 17 00:00:00 2001 From: valia fetisov Date: Thu, 14 Apr 2022 17:25:33 +0200 Subject: [PATCH] fix: Disable bidding button if outcome is NaN (#211) --- frontend/components/transaction/BidTransaction.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/components/transaction/BidTransaction.vue b/frontend/components/transaction/BidTransaction.vue index 1cfdfa834..297269c4d 100644 --- a/frontend/components/transaction/BidTransaction.vue +++ b/frontend/components/transaction/BidTransaction.vue @@ -64,7 +64,8 @@ !isWalletConnected || !isEnoughDeposited || !isWalletAuthorizedCorrect || - !isCollateralAuthorized + !isCollateralAuthorized || + isAmountToReceiveUknown " :is-loading="isExecuting" :is-explanations-shown="isExplanationsShown" @@ -183,6 +184,9 @@ export default Vue.extend({ this.auctionTransaction ); }, + isAmountToReceiveUknown(): boolean { + return this.amountToReceive?.isNaN(); + }, }, });