Skip to content

Commit f7f90a9

Browse files
authored
reset networkid (#10606)
1 parent d1e780f commit f7f90a9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/assets/v2/js/cart.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,10 @@ Vue.component('grants-cart', {
10431043
await onConnect();
10441044
}
10451045

1046+
if (this.nativeCurrency == 'MATIC') {
1047+
this.networkId = this.networkId == '80001' ? '4' : '1';
1048+
}
1049+
10461050
let networkName = getDataChains(this.networkId, 'chainId')[0] && getDataChains(this.networkId, 'chainId')[0].network;
10471051

10481052
// User's wallet must be connected to Ethereum mainnet or rinkeby

app/assets/v2/js/grants/landingpage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (document.getElementById('grants-showcase')) {
77
activePage: document.activePage,
88
state: 'active',
99
mainBanner: document.current_style,
10-
visibleModal: false,
10+
visibleModal: false
1111
},
1212
computed: {
1313
isLandingPage() {
@@ -18,7 +18,7 @@ if (document.getElementById('grants-showcase')) {
1818
},
1919
hideModal() {
2020
this.visibleModal = 'none';
21-
},
21+
}
2222
}
2323
});
2424
}

0 commit comments

Comments
 (0)