Skip to content

Commit

Permalink
fix: Disable bidding button if outcome is NaN (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
valiafetisov authored Apr 14, 2022
1 parent bc4df66 commit 500724b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/components/transaction/BidTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
!isWalletConnected ||
!isEnoughDeposited ||
!isWalletAuthorizedCorrect ||
!isCollateralAuthorized
!isCollateralAuthorized ||
isAmountToReceiveUknown
"
:is-loading="isExecuting"
:is-explanations-shown="isExplanationsShown"
Expand Down Expand Up @@ -183,6 +184,9 @@ export default Vue.extend({
this.auctionTransaction
);
},
isAmountToReceiveUknown(): boolean {
return this.amountToReceive?.isNaN();
},
},
});
</script>

0 comments on commit 500724b

Please sign in to comment.