Skip to content

Commit

Permalink
Merge pull request #332 from telosnetwork/331-strange-behavior-betwee…
Browse files Browse the repository at this point in the history
…n-mainnet-and-testnet

331 strange behavior between mainnet and testnet
  • Loading branch information
karynemayer authored Jan 24, 2023
2 parents 7085217 + 4f47016 commit 6dd4819
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Health/Monitor.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import axios from 'axios';
const API_URL = ('' + process.env.NETWORK_EVM_CHAIN_ID + '' === '40') ?
const API_URL = (process.env.NETWORK_EVM_CHAIN_ID === 40) ?
'https://api.monitor.telos.net' :
'https://api.monitor-test.telos.net';
const API_ENDPOINT_TASKS = API_URL + '/tasks';
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
showLanguageSwitcher: false,
advancedMenuExpanded: false,
menuHiddenDesktop: false,
isTestnet: process.env.NETWORK_EVM_CHAIN_ID !== '40',
isTestnet: process.env.NETWORK_EVM_CHAIN_ID !== 40,
}),
computed: {
...mapGetters('login', [
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
data() {
return {
stlosLogo: stlos,
mainnet: '' + process.env.NETWORK_EVM_CHAIN_ID + '' === '40',
mainnet: process.env.NETWORK_EVM_CHAIN_ID === 40,
accountConnected: false,
drawer: false,
};
Expand Down

0 comments on commit 6dd4819

Please sign in to comment.