Skip to content

Commit

Permalink
chore: add home to migration (#2246)
Browse files Browse the repository at this point in the history
* Try to add home state into migration

* Bump the migration to 22
  • Loading branch information
LeifuChen authored Apr 19, 2023
1 parent cd0d03b commit 4ab677d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions state/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,10 @@ export const migrations = {
futures: FUTURES_INITIAL_STATE,
};
},
9: (state: any) => {
22: (state: any) => {
return {
...state,
home: HOME_INITIAL_STATE,
};
},
21: (state: any) => {
return {
...state,
futures: FUTURES_INITIAL_STATE,
earn: EARN_INITIAL_STATE,
staking: STAKING_INITIAL_STATE,
Expand Down
2 changes: 1 addition & 1 deletion state/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const LOG_REDUX = false;
const persistConfig = {
key: 'root1',
storage,
version: 21,
version: 22,
blacklist: ['app', 'wallet'],
migrate: createMigrate(migrations, { debug: true }),
};
Expand Down

0 comments on commit 4ab677d

Please sign in to comment.