Skip to content

Commit

Permalink
auto migrate to new Tajweed Musahf
Browse files Browse the repository at this point in the history
  • Loading branch information
osamasayed committed Sep 23, 2024
1 parent bfd77ce commit 0d769cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/redux/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,13 @@ export default {
isDonationPopupVisible: true,
},
}),
32: (state) => ({
...state,
quranReaderStyles: {
...state.quranReaderStyles,
...(state.quranReaderStyles.quranFont === QuranFont.Tajweed && {
quranFont: QuranFont.TajweedV4,
}),
},
}),
};
2 changes: 1 addition & 1 deletion src/redux/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import SliceName from './types/SliceName';

const persistConfig = {
key: 'root',
version: 31,
version: 32,
storage,
migrate: createMigrate(migrations, {
debug: process.env.NEXT_PUBLIC_VERCEL_ENV === 'development',
Expand Down

0 comments on commit 0d769cf

Please sign in to comment.