Skip to content

Commit

Permalink
Fix bug with category_settings when using categoryName with special s…
Browse files Browse the repository at this point in the history
…ymbols
  • Loading branch information
ZhenjaHorbach committed May 27, 2024
1 parent e9d8c85 commit 475d2bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ const config: LinkingOptions<RootStackParamList>['config'] = {
screens: {
[SCREENS.SETTINGS_CATEGORIES.SETTINGS_CATEGORY_SETTINGS]: {
path: ROUTES.SETTINGS_CATEGORY_SETTINGS.route,
parse: {
categoryName: (categoryName: string) => decodeURIComponent(categoryName),
},
},
[SCREENS.SETTINGS_CATEGORIES.SETTINGS_CATEGORIES_SETTINGS]: {
path: ROUTES.SETTINGS_CATEGORIES_SETTINGS.route,
Expand All @@ -547,6 +550,9 @@ const config: LinkingOptions<RootStackParamList>['config'] = {
},
[SCREENS.SETTINGS_CATEGORIES.SETTINGS_CATEGORY_EDIT]: {
path: ROUTES.SETTINGS_CATEGORY_EDIT.route,
parse: {
categoryName: (categoryName: string) => decodeURIComponent(categoryName),
},
},
},
},
Expand Down

0 comments on commit 475d2bd

Please sign in to comment.