diff --git a/services/services.go b/services/services.go index fee03b22b4..13505c2cbe 100644 --- a/services/services.go +++ b/services/services.go @@ -1134,7 +1134,6 @@ func LatestSlotVizMetrics() []*types.SlotVizEpochs { // LatestState returns statistics about the current eth2 state func LatestState() *types.LatestState { data := &types.LatestState{} - data.ChainID = utils.Config.Chain.Id data.CurrentEpoch = LatestEpoch() data.CurrentSlot = LatestSlot() data.CurrentFinalizedEpoch = LatestFinalizedEpoch() diff --git a/static/js/banner.js b/static/js/banner.js index cded0061db..dfe6015903 100644 --- a/static/js/banner.js +++ b/static/js/banner.js @@ -47,8 +47,8 @@ function updateBanner() { slotHandle.setAttribute("href", "/slot/" + data.currentSlot) } - if (data && data.chainID === 1) { - var ethPriceHandle = document.getElementById("banner-eth-price-data") + var ethPriceHandle = document.getElementById("banner-eth-price-data") + if (ethPriceHandle) { try { let userCurrency = getCookie("currency") if (!userCurrency) userCurrency = data.rates.tickerCurrency diff --git a/types/templates.go b/types/templates.go index aa5bd59974..9781b6ea74 100644 --- a/types/templates.go +++ b/types/templates.go @@ -126,7 +126,6 @@ type Meta struct { // LatestState is a struct to hold data for the banner type LatestState struct { - ChainID uint64 `json:"chainID"` LastProposedSlot uint64 `json:"lastProposedSlot"` CurrentSlot uint64 `json:"currentSlot"` CurrentEpoch uint64 `json:"currentEpoch"`