Skip to content

Commit

Permalink
fix: Add null check for activeAccountInfo in AccountOverview.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
mraveux committed Jul 15, 2024
1 parent 1a59b95 commit e6386f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/layouts/AccountOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

<Tooltip class="nim-usdc-swap-button" ref="nimUsdcSwapTooltip$" :container="this"
preferredPosition="top"
v-if="activeAccountInfo.type !== AccountType.LEDGER
v-if="activeAccountInfo && activeAccountInfo.type !== AccountType.LEDGER
&& hasUsdcAddresses && $config.usdc.enabled
&& (
nimAccountBalance > 0
Expand Down Expand Up @@ -133,7 +133,7 @@

<Tooltip class="btc-usdc-swap-button" ref="btcUsdcSwapTooltip$" :container="this"
preferredPosition="top"
v-if="activeAccountInfo.type !== AccountType.LEDGER
v-if="activeAccountInfo && activeAccountInfo.type !== AccountType.LEDGER
&& hasBitcoinAddresses && hasUsdcAddresses
&& $config.enableBitcoin && $config.usdc.enabled
&& (
Expand All @@ -154,7 +154,7 @@
</i18n>
</Tooltip>

<button v-if="activeAccountInfo.type !== AccountType.LEDGER
<button v-if="activeAccountInfo && activeAccountInfo.type !== AccountType.LEDGER
&& canHaveMultipleAddresses
&& $config.usdc.enabled" ref="usdcAccount$"
class="reset usdc-account flex-column"
Expand Down

0 comments on commit e6386f8

Please sign in to comment.