From d8b9af7b44d618088de2e72a895e8bfe0cd8539c Mon Sep 17 00:00:00 2001 From: Agata Kosior Date: Tue, 9 Jan 2024 17:03:40 +0100 Subject: [PATCH] fix: fix typing --- src/libs/actions/PersonalDetails.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/PersonalDetails.ts b/src/libs/actions/PersonalDetails.ts index 18320f3f2406..508cca34fb88 100644 --- a/src/libs/actions/PersonalDetails.ts +++ b/src/libs/actions/PersonalDetails.ts @@ -45,7 +45,7 @@ Onyx.connect({ /** * Creates a new displayName for a user based on passed personal details or login. */ -function createDisplayName(login: string, personalDetails: Pick): string { +function createDisplayName(login: string, personalDetails: Pick | OnyxEntry): string { // If we have a number like +15857527441@expensify.sms then let's remove @expensify.sms and format it // so that the option looks cleaner in our UI. const userLogin = LocalePhoneNumber.formatPhoneNumber(login);