Skip to content

Commit

Permalink
enhancement: show correct unit on slider min max (#5764)
Browse files Browse the repository at this point in the history
Co-authored-by: Tuditi <45079109+Tuditi@users.noreply.github.com>
  • Loading branch information
MarkNerdi996 and Tuditi committed Feb 6, 2023
1 parent ac1d534 commit 16c06e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/components/inputs/AssetAmountInput.svelte
Expand Up @@ -119,10 +119,10 @@
<SliderInput bind:value={amount} {max} decimals={allowedDecimals} {disabled} />
<div class="flex flex-row justify-between">
<Text color="gray-800" darkColor="gray-500" fontSize="xs"
>{formatTokenAmountBestMatch(0, asset?.metadata)}</Text
>{formatTokenAmountDefault(0, asset?.metadata, unit)} {unit}</Text
>
<Text color="gray-800" darkColor="gray-500" fontSize="xs"
>{formatTokenAmountBestMatch(availableBalance, asset?.metadata)}</Text
>{formatTokenAmountDefault(availableBalance, asset?.metadata, unit)} {unit}</Text
>
</div>
</div>
Expand Down

0 comments on commit 16c06e7

Please sign in to comment.