Skip to content

Commit

Permalink
Merge pull request #3201 from brave/blank-panel
Browse files Browse the repository at this point in the history
Fixes blank panel
  • Loading branch information
NejcZdovc authored Aug 19, 2019
2 parents d398837 + 89023ef commit affaead
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 affaead

Please sign in to comment.