From 2767ae20ece569530e2ca8d6f1f8554f315e04c3 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Sun, 30 May 2021 03:46:09 +0530 Subject: [PATCH] bug fix - fixed: end date displayed incorrectly --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 18def7b..3a48d56 100644 --- a/index.html +++ b/index.html @@ -10904,17 +10904,17 @@ Bitcoin.Util = { console.info(f); let startDate = new Date(f.start_date).getTime() const tapouts = {} - if (f["tapoutInterval"]) - f["tapoutInterval"].forEach((i, k) => { + if (f.tapoutInterval) + f.tapoutInterval.forEach((i, k) => { let ts = dateAdder(startDate, i), - te = dateAdder(ts, f["topoutWindow"]); + te = dateAdder(ts, f.topoutWindow); tapouts[`Tapout ${k+1}`] = `${dateFormat(ts)} to ${dateFormat(te)}` }) const fundObj = { //termTxHref: `https://livenet.flocha.in/tx/${term.txid}`, fundTxHref: `https://livenet.flocha.in/tx/${funds[k][0].txid}`, startDate: dateFormat(f.start_date), - endDate: dateFormat(dateAdder(startDate, funds["maxPeriod"])), + endDate: dateFormat(dateAdder(startDate, f.duration)), baseUsd: f.USD_base, baseBtc: f.BTC_base, tapouts,