Skip to content

Commit

Permalink
Syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Oct 2, 2024
1 parent d865319 commit c315ce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/earn/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
onMount(async () => {
const client = getClient($activeBlockchain.chainId)
const unsubscribe = currentAccount.subscribe(async (account) => {
if !$systemToken return
if (!$systemToken) return
const result = await client.v1.chain.get_table_rows({
code: 'eosio',
scope: 'eosio',
Expand Down Expand Up @@ -160,7 +160,7 @@
const annualReward = 31250000
const totalStaked = Number($stateREX.total_lendable.value)
apy = ((annualReward / totalStaked) * 100).toFixed(2)
if ($currentAccount && $systemToken && $currentAccount.rex_info) {
if ($currentAccount && $systemToken && $currentAccount.rex_info) {
total = convertRexToEos($currentAccount.rex_info.rex_balance.value)
if ($rexEOSBalance.value > 0) {
total = Asset.fromUnits(
Expand Down

0 comments on commit c315ce9

Please sign in to comment.