Skip to content

Commit

Permalink
Add null check for primarywallet connectChain within account center m…
Browse files Browse the repository at this point in the history
…aximized (#1732)
  • Loading branch information
Adamj1232 authored May 21, 2023
1 parent 49d107d commit e54290a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.19.1",
"version": "2.19.2-alpha.1",
"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.",
"keywords": [
"Ethereum",
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/views/account-center/Maximized.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
connectedChain && connectedChain.id
)
$: primaryWalletOnMainnet = connectedChain && connectedChain.id === '0x1'
const { position } = accountCenter
const { device } = configuration
</script>
Expand Down Expand Up @@ -450,7 +452,7 @@
</div>
</div>
<!-- Only display on Eth Mainnet -->
{#if !$accountCenter$.hideTransactionProtectionBtn && connectedChain.id === '0x1'}
{#if !$accountCenter$.hideTransactionProtectionBtn && primaryWalletOnMainnet}
<div
on:click={() => (enableTransactionProtection = true)}
class="protect action-container flex items-center pointer"
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"@web3-onboard/cede-store": "^2.0.2",
"@web3-onboard/coinbase": "^2.2.3",
"@web3-onboard/core": "^2.19.1",
"@web3-onboard/core": "^2.19.2-alpha.1",
"@web3-onboard/dcent": "^2.2.7",
"@web3-onboard/enkrypt": "^2.0.3",
"@web3-onboard/fortmatic": "^2.0.18",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/react",
"version": "2.8.3",
"version": "2.8.4-alpha.1",
"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.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -63,7 +63,7 @@
},
"dependencies": {
"@web3-onboard/common": "^2.3.3",
"@web3-onboard/core": "^2.19.1",
"@web3-onboard/core": "^2.19.2-alpha.1",
"use-sync-external-store": "1.0.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/vue",
"version": "2.7.2",
"version": "2.7.3-alpha.1",
"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.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -63,7 +63,7 @@
"@vueuse/core": "^8.4.2",
"@vueuse/rxjs": "^8.2.0",
"@web3-onboard/common": "^2.3.3",
"@web3-onboard/core": "^2.19.1",
"@web3-onboard/core": "^2.19.2-alpha.1",
"vue-demi": "^0.12.4"
},
"peerDependencies": {
Expand Down

0 comments on commit e54290a

Please sign in to comment.