Skip to content

Commit

Permalink
Fixed bostrom validator modal
Browse files Browse the repository at this point in the history
  • Loading branch information
prevetal committed Feb 14, 2024
1 parent cd1f20f commit 59522a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modal/ValidatorModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
onBeforeMount(async () => {
// Get validator data
await fetch(`https://rpc.bronbro.io/validators/${store.validatorInfo.operator_address}`)
await fetch(`${store.networks[store.currentNetwork].index_api}/validators/${store.validatorInfo.operator_address}`)
.then(res => res.json())
.then(response => {
// Set data
Expand All @@ -165,7 +165,7 @@
function imageLoadError(event) {
event.target.classList.add('hide')
event.target.closest('.logo').style.backgroundColor = store.colors[Math.floor((Math.random()*store.colors.length))]
event.target.closest('.logo').style.backgroundColor = store.networkColors[Math.floor((Math.random() * store.networkColors.length))]
}
</script>

Expand Down
1 change: 1 addition & 0 deletions src/stores/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const useGlobalStore = defineStore('global', {
NGM: '#00646F',
ATOM: '#2E314B',
DSM: '#F98256',
DYM: '#F0E0D3',
FLIX: '#F19E22',
AKT: '#ED3324',
MNTL: '#F5B31D',
Expand Down

0 comments on commit 59522a8

Please sign in to comment.