Skip to content

Commit

Permalink
Fixes blank panel
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Aug 19, 2019
1 parent d398837 commit 89023ef
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 89023ef

Please sign in to comment.