From 5d532ae9afd3a4526e41459e5b7e2eaf26484f14 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Fri, 20 Dec 2024 10:31:37 +0500 Subject: [PATCH] intl: add optional chaining to search route strings --- packages/intl/src/strings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/intl/src/strings.ts b/packages/intl/src/strings.ts index 5d6058de45..6b753de263 100644 --- a/packages/intl/src/strings.ts +++ b/packages/intl/src/strings.ts @@ -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: () =>