Skip to content

Commit

Permalink
fix(app): add migration for stats (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
avclarke authored Sep 7, 2023
1 parent 738a20e commit c7ca75e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/app/src/state/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ export const migrations = {
prices: PRICES_INITIAL_STATE,
}
},
37: (state: any) => {
return {
...state,
stats: STATS_INITIAL_STATE,
}
},
}

export default migrations
2 changes: 1 addition & 1 deletion packages/app/src/state/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const LOG_REDUX = false
const persistConfig = {
key: 'root1',
storage,
version: 36,
version: 37,
blacklist: ['app', 'wallet'],
migrate: createMigrate(migrations, { debug: true }),
}
Expand Down

0 comments on commit c7ca75e

Please sign in to comment.