Skip to content

Commit

Permalink
Add notice card migration
Browse files Browse the repository at this point in the history
  • Loading branch information
c3bryant committed Mar 19, 2020
1 parent a34d1b0 commit f3cd757
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const saveShuttleFilter = createFilter(
const migrations = {
0: state => ({
...state,
promotion: undefined
promotions: undefined
}),
1: state => ({
...state,
Expand All @@ -43,7 +43,7 @@ const migrations = {
...state.cards.cards,
promotions: {
id: 'promotions',
active: true,
active: false,
autoActivated: false,
name: 'Notices',
component: 'PromotionsCard'
Expand All @@ -56,6 +56,7 @@ const migrations = {
}

const persistConfig = {
version: 2,
key: 'home',
storage: AsyncStorage,
transforms: [saveMapFilter, saveShuttleFilter],
Expand Down

0 comments on commit f3cd757

Please sign in to comment.