diff --git a/data/networks.json b/data/networks.json index 68ff9d36ab..96bac4bd97 100644 --- a/data/networks.json +++ b/data/networks.json @@ -100,7 +100,7 @@ }, { "id": "terra-mainnet", - "title": "Terra mainnet", + "title": "Terra", "chain_id": "columbus-3", "api_url": "https://fcd.terra.dev/", "rpc_url": "ws://52.78.43.42:26657/websocket", diff --git a/lib/reducers/cosmosV0-reducers.js b/lib/reducers/cosmosV0-reducers.js index 0cd67df975..6e59b46ef9 100644 --- a/lib/reducers/cosmosV0-reducers.js +++ b/lib/reducers/cosmosV0-reducers.js @@ -344,9 +344,12 @@ function overviewReducer( return { rewards: - rewards[0].constructor === Array - ? reducers.rewardReducer(rewards) - : rewards, + // there are some accounts which are not staking and therefore have no rewards + rewards[0] + ? rewards[0].constructor === Array + ? reducers.rewardReducer(rewards) + : rewards + : null, totalRewards: totalRewards, liquidStake: liquidStake, totalStake: liquidStake.plus(delegatedStake).plus(undelegatingStake)