UI bug fixes
This commit is contained in:
parent
81d2e42bad
commit
aaa93c37d3
@ -147,7 +147,7 @@
|
|||||||
function formatAmount(amount = 0, currency = 'inr') {
|
function formatAmount(amount = 0, currency = 'inr') {
|
||||||
if (!amount)
|
if (!amount)
|
||||||
return '0';
|
return '0';
|
||||||
return amount.toLocaleString(currency === 'inr' ? `en-IN` : 'en-US', { currency, maximumFractionDigits: 8 })
|
return amount.toLocaleString(undefined, { currency, maximumFractionDigits: 8 })
|
||||||
}
|
}
|
||||||
// fetch data and return json
|
// fetch data and return json
|
||||||
async function fetchJson(url, options = {}) {
|
async function fetchJson(url, options = {}) {
|
||||||
@ -703,10 +703,6 @@
|
|||||||
<a href=${`#/address/${incAddress}`} class="address wrap-around">${incAddress}</a>
|
<a href=${`#/address/${incAddress}`} class="address wrap-around">${incAddress}</a>
|
||||||
</sm-copy>
|
</sm-copy>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-direction-column">
|
|
||||||
<h5 class="label">token name</h5>
|
|
||||||
<h4 class="uppercase">${token}</h4>
|
|
||||||
</div>
|
|
||||||
<div class="flex flex-direction-column">
|
<div class="flex flex-direction-column">
|
||||||
<h5 class="label">supply</h5>
|
<h5 class="label">supply</h5>
|
||||||
<h4>${supply ? formatAmount(supply, token.toLowerCase() === 'rupee' ? 'inr' : 'usd') : 'Infinite'} </h4>
|
<h4>${supply ? formatAmount(supply, token.toLowerCase() === 'rupee' ? 'inr' : 'usd') : 'Infinite'} </h4>
|
||||||
@ -1013,7 +1009,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="uppercase">${token}</h2>
|
<h2 class="uppercase">${token}</h2>
|
||||||
<h5 class="label">Supply</h5>
|
<h5 class="label">Supply</h5>
|
||||||
<h4> </h4>
|
<h4>${supply ? formatAmount(supply, token.toLowerCase() === 'rupee' ? 'inr' : 'usd') : 'Infinite'}</h4>
|
||||||
<h5 class="label">Incorporation address</h5>
|
<h5 class="label">Incorporation address</h5>
|
||||||
<sm-copy value=${incAddress}>
|
<sm-copy value=${incAddress}>
|
||||||
<h4 class="wrap-around">
|
<h4 class="wrap-around">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user