diff --git a/docs/index.html b/docs/index.html index 7277252..9ed67bf 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2646,8 +2646,11 @@ const price = toFixed(getSuggestedPrice()); const total = formatAmount(parseFloat(getRef('get_total').value)) const minTotal = formatAmount(toFixed(currentPrice * quantity)) - getRef('confirm_trade__title').textContent = `${tradeType} ${asset}` - getRef('confirm_trade__details').innerHTML = ` + getRef('confirm_trade__title').textContent = `${tradeType} ${asset}`; + renderElem(getRef('confirm_trade__details'), html` + ${tradeType === 'buy' ? html` + You won't be able to sell the bought asset below it's purchasing price. + `: ''}

Quantity

${quantity} ${asset} @@ -2665,9 +2668,9 @@

- All trades will be executed at current price. + *All trades will be executed at current price.

- `; + `); break; } }) @@ -2894,17 +2897,17 @@ async function fetchOnChainBalances() { try { - getRef('personal_flo_balance').innerHTML = `` - getRef('personal_usd_balance').innerHTML = `` + renderElem(getRef('personal_flo_balance'), html``) + renderElem(getRef('personal_usd_balance'), html``) const [floBalance, usdBalance] = await Promise.all([ floBlockchainAPI.getBalance(floGlobals.myFloID), floTokenAPI.getBalance(accountDetails.floID, 'usd') ]) // show personal assets const [beforeDecimal, afterDecimal = '00'] = String(floBalance).split('.') - getRef('personal_flo_balance').innerHTML = `${beforeDecimal}.${afterDecimal}` + renderElem(getRef('personal_flo_balance'), html`${beforeDecimal}.${afterDecimal}`) const [beforeDecimal1, afterDecimal1] = formatAmount(usdBalance, true).split('$')[1].split('.') - getRef('personal_usd_balance').innerHTML = `${beforeDecimal1}.${afterDecimal1}` + renderElem(getRef('personal_usd_balance'), html`${beforeDecimal1}.${afterDecimal1}`) } catch (e) { console.error(e) }