From b05ce873c86591e6634545353679a3c10ed4bb2a Mon Sep 17 00:00:00 2001 From: Agata Kosior Date: Mon, 28 Oct 2024 21:24:35 +0700 Subject: [PATCH] fix: show default name in the card feed name input --- .../companyCards/WorkspaceCompanyCardsSettingsFeedNamePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsFeedNamePage.tsx b/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsFeedNamePage.tsx index d456276d921a..3a922728b3ce 100644 --- a/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsFeedNamePage.tsx +++ b/src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsFeedNamePage.tsx @@ -41,7 +41,7 @@ function WorkspaceCompanyCardsSettingsFeedNamePage({ const [lastSelectedFeed] = useOnyx(`${ONYXKEYS.COLLECTION.LAST_SELECTED_FEED}${policyID}`); const [cardFeeds] = useOnyx(`${ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_DOMAIN_MEMBER}${workspaceAccountID}`); const selectedFeed = CardUtils.getSelectedFeed(lastSelectedFeed, cardFeeds); - const feedName = cardFeeds?.settings?.companyCardNicknames?.[selectedFeed] ?? ''; + const feedName = cardFeeds?.settings?.companyCardNicknames?.[selectedFeed] ?? translate('workspace.companyCards.feedName', {feedName: CardUtils.getCardFeedName(selectedFeed)}); const validate = useCallback( (values: FormOnyxValues) => {