From 7f7834f7b15f52f1fc7b6c9236302fb8bd1731e7 Mon Sep 17 00:00:00 2001 From: octavioamu Date: Fri, 10 Apr 2020 14:46:19 -0300 Subject: [PATCH] fix eslint --- app/assets/v2/js/grants/fund.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/v2/js/grants/fund.js b/app/assets/v2/js/grants/fund.js index 64bb8c5e0e1..2fe84f40785 100644 --- a/app/assets/v2/js/grants/fund.js +++ b/app/assets/v2/js/grants/fund.js @@ -360,8 +360,8 @@ $(document).ready(function() { let realTokenAmount = Number(data.amount_per_period * Math.pow(10, decimals)); let realApproval; - const approve_buffer = 100000; + if (data.contract_version == 1 || data.num_periods == 1) { realApproval = Number(((grant_amount + gitcoin_grant_amount) * data.num_periods * Math.pow(10, decimals)) + approve_buffer);