Skip to content

Commit

Permalink
Fixed a small issue :)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-r00t committed Nov 27, 2020
1 parent 4b18118 commit 69edcd4
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions app/mainWindow/components/Balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,42 +164,6 @@ export default class Balance extends Component<Props, State> {
</span>
</span>
)}
{displayCurrency === 'fiat' && symbolLocation === 'prefix' && (
<span
className={
lockedBalance > 0
? `tag is-dark ${size}`
: `tag is-dark ${size}`
}
data-tip={balanceTooltip}
>
{lockedBalance > 0 ? (
<i className="fa fa-lock" />
) : (
<i className="fa fa-unlock" />
)}
&nbsp;
{fiatPrice !== 0 ? (
// eslint-disable-next-line prefer-template
fiatSymbol +
formatLikeCurrency(
Number(
(
fiatPrice *
atomicToHuman(unlockedBalance + lockedBalance, false)
).toFixed(fiatDecimals)
)
)
) : (
<ReactLoading
type="bubbles"
color="#F5F5F5"
height={30}
width={30}
/>
)}
</span>
)}
{displayCurrency === 'fiat' && symbolLocation === 'suffix' && (
<span
className={
Expand Down Expand Up @@ -243,14 +207,14 @@ export default class Balance extends Component<Props, State> {
>
&nbsp;
<span className="unlocked">
{fiatSymbol + formatLikeCurrency(
{fiatSymbol +formatLikeCurrency(
Number(
(
fiatPrice *
atomicToHuman(unlockedBalance, false)
).toFixed(fiatDecimals)
)
) + " " + fiatSymbol}
)}
</span>
<span className="locked">+&nbsp;
{fiatSymbol + formatLikeCurrency(
Expand Down

0 comments on commit 69edcd4

Please sign in to comment.