We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e6dd48 commit e855c05Copy full SHA for e855c05
packages/core/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@web3-onboard/core",
3
- "version": "2.2.1",
+ "version": "2.2.2",
4
"scripts": {
5
"build": "rollup -c",
6
"dev": "rollup -c -w",
packages/core/src/views/account-center/Minimized.svelte
@@ -40,15 +40,16 @@
40
? firstAccount.balance[firstAddressAsset]
41
: null
42
43
- $: primaryChain = primaryWallet.chains[0]
+ $: primaryChain =
44
+ primaryWallet && primaryWallet.chains[0]
45
46
$: validAppChain = chains.find(({ id, namespace }) =>
47
primaryChain
48
? id === primaryChain.id && namespace === primaryChain.namespace
49
: false
50
)
51
- $: defaultChainStyles = getDefaultChainStyles(primaryChain.id)
52
+ $: defaultChainStyles = getDefaultChainStyles(primaryChain && primaryChain.id)
53
54
function maximize() {
55
updateAccountCenter({ expanded: true })
0 commit comments