Skip to content

Commit

Permalink
fix clr msg on cart
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu committed Sep 24, 2020
1 parent 145cd9f commit 7df8b5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/assets/v2/js/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -1749,10 +1749,10 @@ Vue.component('grants-cart', {
// Get worst case fee amount
this.zkSyncFeeTotals[tokenSymbol] = await this.getMaxFee(tokenSymbol);
this.setZkSyncFeesString();

// Note: Don't `break` out of the if statements if insufficient balance, because we
// also use this function to set the fee string shown to the user on the checkout modal

// Balance will be undefined if the user does not have that token, so we can break
if (!balance) {
this.hasSufficientZkSyncBalance = false;
Expand Down Expand Up @@ -2485,6 +2485,9 @@ Vue.component('grants-cart', {
for (let i = 0; i < this.grantData.length; i += 1) {
const verification_required_to_get_match = false;

if (this.grantData[i].is_clr_eligible === 'true' || this.grantData[i].is_clr_eligible === 'True') {
this.$set(this.grantData[i], 'is_clr_eligible', true);
}
if (
(!document.verified && verification_required_to_get_match) ||
grantData.is_clr_eligible == 'False'
Expand Down

0 comments on commit 7df8b5f

Please sign in to comment.