From 90aa45b08cb2630256de2858a5642e53a8164d3d Mon Sep 17 00:00:00 2001 From: kiranraj20 Date: Sat, 7 Dec 2024 19:32:16 +0530 Subject: [PATCH] fixed App crashes when trying to change radius on avatar --- .../pages/builder/sidebars/left/sections/picture/options.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/pages/builder/sidebars/left/sections/picture/options.tsx b/apps/client/src/pages/builder/sidebars/left/sections/picture/options.tsx index c561911c17..ab993e9e36 100644 --- a/apps/client/src/pages/builder/sidebars/left/sections/picture/options.tsx +++ b/apps/client/src/pages/builder/sidebars/left/sections/picture/options.tsx @@ -57,7 +57,7 @@ export const PictureOptions = () => { }; const borderRadius = useMemo(() => { - const radius = picture.borderRadius.toString() as keyof typeof borderRadiusToStringMap; + const radius = picture.borderRadius?.toString() as keyof typeof borderRadiusToStringMap; return borderRadiusToStringMap[radius]; }, [picture.borderRadius]);