Skip to content

Commit

Permalink
Fixes blank panel
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc authored and bsclifton committed Sep 11, 2019
1 parent b1db7d9 commit 7d80348
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const cleanData = (state: RewardsExtension.State) => {
state = { ...state }
state.publishers = {}

if (!state.balance) {
const balance = state.balance as any
if (!balance || balance.total == null) {
state.balance = defaultState.balance
}

Expand Down

0 comments on commit 7d80348

Please sign in to comment.