Skip to content

Commit

Permalink
hotfix: crash on lost node connection (#8533)
Browse files Browse the repository at this point in the history
* fix: Handle empty network name

* cleanup

* fmt
  • Loading branch information
marc2332 authored May 17, 2024
1 parent 6b021cf commit 84ed7b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/desktop/components/WalletSummary.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
import { activeProfile } from '@core/profile'
$: fomattedNetworkName = $nodeInfoNetworkName
.split(' ')
.map((word) => word[0].toUpperCase() + word.substring(1))
.join(' ')
? $nodeInfoNetworkName
.split(' ')
.map((word) => word[0].toUpperCase() + word.substring(1))
.join(' ')
: ''
$: ({ baseCoin, mana } = $selectedWalletAssets[$activeProfile?.network.id])
</script>
Expand Down

0 comments on commit 84ed7b1

Please sign in to comment.