Skip to content

Commit e54290a

Browse files
authored
Add null check for primarywallet connectChain within account center maximized (#1732)
1 parent 49d107d commit e54290a

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.19.1",
3+
"version": "2.19.2-alpha.1",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",

packages/core/src/views/account-center/Maximized.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
connectedChain && connectedChain.id
7676
)
7777
78+
$: primaryWalletOnMainnet = connectedChain && connectedChain.id === '0x1'
79+
7880
const { position } = accountCenter
7981
const { device } = configuration
8082
</script>
@@ -450,7 +452,7 @@
450452
</div>
451453
</div>
452454
<!-- Only display on Eth Mainnet -->
453-
{#if !$accountCenter$.hideTransactionProtectionBtn && connectedChain.id === '0x1'}
455+
{#if !$accountCenter$.hideTransactionProtectionBtn && primaryWalletOnMainnet}
454456
<div
455457
on:click={() => (enableTransactionProtection = true)}
456458
class="protect action-container flex items-center pointer"

packages/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"dependencies": {
2727
"@web3-onboard/cede-store": "^2.0.2",
2828
"@web3-onboard/coinbase": "^2.2.3",
29-
"@web3-onboard/core": "^2.19.1",
29+
"@web3-onboard/core": "^2.19.2-alpha.1",
3030
"@web3-onboard/dcent": "^2.2.7",
3131
"@web3-onboard/enkrypt": "^2.0.3",
3232
"@web3-onboard/fortmatic": "^2.0.18",

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/react",
3-
"version": "2.8.3",
3+
"version": "2.8.4-alpha.1",
44
"description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",
@@ -63,7 +63,7 @@
6363
},
6464
"dependencies": {
6565
"@web3-onboard/common": "^2.3.3",
66-
"@web3-onboard/core": "^2.19.1",
66+
"@web3-onboard/core": "^2.19.2-alpha.1",
6767
"use-sync-external-store": "1.0.0"
6868
},
6969
"peerDependencies": {

packages/vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/vue",
3-
"version": "2.7.2",
3+
"version": "2.7.3-alpha.1",
44
"description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",
@@ -63,7 +63,7 @@
6363
"@vueuse/core": "^8.4.2",
6464
"@vueuse/rxjs": "^8.2.0",
6565
"@web3-onboard/common": "^2.3.3",
66-
"@web3-onboard/core": "^2.19.1",
66+
"@web3-onboard/core": "^2.19.2-alpha.1",
6767
"vue-demi": "^0.12.4"
6868
},
6969
"peerDependencies": {

0 commit comments

Comments
 (0)