UI update

This commit is contained in:
sairaj mote 2021-05-14 02:41:40 +05:30
parent 8ed81d1ee2
commit 4911089a6f

View File

@ -10726,7 +10726,7 @@ Bitcoin.Util = {
function refresh(showLoader = true){ function refresh(showLoader = true){
if(showLoader) if(showLoader)
showPage('error_page') showPage('loading_page')
getCurrentRates().then(async (rates) => { getCurrentRates().then(async (rates) => {
USD_current = rates.USD_INR; USD_current = rates.USD_INR;
BTC_current = rates.BTC_USD; BTC_current = rates.BTC_USD;
@ -10763,7 +10763,7 @@ Bitcoin.Util = {
getFundsFromBlockchain(floID) getFundsFromBlockchain(floID)
.then(funds => { .then(funds => {
renderFunds(term, funds) renderFunds(term, funds)
// showPage('home_page') showPage('home_page')
}).catch(error => console.error(error)) }).catch(error => console.error(error))
} }
}).catch(error => console.error(error)); }).catch(error => console.error(error));
@ -10773,7 +10773,7 @@ Bitcoin.Util = {
let term = parseTerm(terms[floID]) let term = parseTerm(terms[floID])
const funds = await getFundsFromBlockchain(floID) const funds = await getFundsFromBlockchain(floID)
renderFunds(term, funds) renderFunds(term, funds)
// showPage('home_page') showPage('home_page')
} }
} }
catch(err){ catch(err){