From 8c79b03b60700c6bacb1c2518ba39ca75f69368c Mon Sep 17 00:00:00 2001 From: AdityaJ2305 Date: Thu, 26 Sep 2024 16:48:10 +0530 Subject: [PATCH] prettier fixed --- src/Components/Users/UserAdd.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Components/Users/UserAdd.tsx b/src/Components/Users/UserAdd.tsx index 73fcda43942..9ee1e722ee1 100644 --- a/src/Components/Users/UserAdd.tsx +++ b/src/Components/Users/UserAdd.tsx @@ -325,7 +325,11 @@ export const UserAdd = (props: UserProps) => { }, [state.form.phone_number_is_whatsapp, state.form.phone_number]); const setFacility = (selected: FacilityModel | FacilityModel[] | null) => { - const newSelectedFacilities = selected ? (Array.isArray(selected) ? selected : [selected]) : []; + const newSelectedFacilities = selected + ? Array.isArray(selected) + ? selected + : [selected] + : []; setSelectedFacility(newSelectedFacilities as FacilityModel[]); const form = { ...state.form }; form.facilities = selected