Skip to content

Commit 500724b

Browse files
authored
fix: Disable bidding button if outcome is NaN (#211)
1 parent bc4df66 commit 500724b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/components/transaction/BidTransaction.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
!isWalletConnected ||
6565
!isEnoughDeposited ||
6666
!isWalletAuthorizedCorrect ||
67-
!isCollateralAuthorized
67+
!isCollateralAuthorized ||
68+
isAmountToReceiveUknown
6869
"
6970
:is-loading="isExecuting"
7071
:is-explanations-shown="isExplanationsShown"
@@ -183,6 +184,9 @@ export default Vue.extend({
183184
this.auctionTransaction
184185
);
185186
},
187+
isAmountToReceiveUknown(): boolean {
188+
return this.amountToReceive?.isNaN();
189+
},
186190
},
187191
});
188192
</script>

0 commit comments

Comments
 (0)