Skip to content

Commit

Permalink
intl: add optional chaining to search route strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Dec 20, 2024
1 parent 0921fef commit 5d532ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/intl/src/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ For example:
return (
SEARCH_IN_ROUTE_STRINGS[
routeName as keyof typeof SEARCH_IN_ROUTE_STRINGS
]() || t`Search in ${routeName}`
]?.() || t`Search in ${routeName}`
);
},
logoutConfirmation: () =>
Expand Down

0 comments on commit 5d532ae

Please sign in to comment.