Updated the code to name the field companyArabName and made it so it returns it when arabic

This commit is contained in:
Tiago Ribeiro
2024-04-21 00:37:08 +01:00
parent a958e2ff0d
commit 1a17689cd2
5 changed files with 80 additions and 51 deletions

View File

@@ -151,7 +151,7 @@ function UserProfile({ user, mutateUser }: Props) {
: undefined,
);
const [arabName, setArabName] = useState<string | undefined>(
user.type === "agent" ? user.agentInformation?.arabName : undefined,
user.type === "agent" ? user.agentInformation?.companyArabName : undefined,
);
const [timezone, setTimezone] = useState<string>(