Updated the code to name the field companyArabName and made it so it returns it when arabic
This commit is contained in:
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user