Skip to content

Commit

Permalink
fix: fixed the ram value section
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Oct 24, 2024
1 parent 1e5feb9 commit 1a7642c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/routes/[network]/(account)/ram/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,21 @@
</div>
<div class="mt-4 w-full text-left md:mt-0 md:w-1/2 md:p-8">
<p class="text-left text-gray-400">Total RAM Value USD</p>
<p class="text-left text-xl font-bold text-white">{String(ramOwned)}</p>
<p class="text-left text-xl font-bold text-white">
$ {String(
context.account?.ram?.max && data.network.ramprice?.usd
? calculateValue(ramOwned, data.network.ramprice?.usd)
: '0'
)}
</p>
<hr class="my-2 border-gray-600" />
<p class="text-left text-gray-400">
Total RAM Value {data.network.chain.systemToken?.symbol.code || ''}
</p>
<p class="text-left text-xl font-bold text-white">
$ {String(
{String(
context.account?.ram?.max && data.network.ramprice?.usd
? calculateValue(ramOwned, data.network.ramprice?.usd)
? calculateValue(ramOwned, data.network.ramprice?.eos)
: '0'
)}
</p>
Expand Down

0 comments on commit 1a7642c

Please sign in to comment.