Skip to content

Commit

Permalink
Merge pull request #1978 from googleknight/fix/profile-picture-adjust…
Browse files Browse the repository at this point in the history
…ment-crash

fix(edit profile picture): fix the page crash happening when clicking on circular border radius
  • Loading branch information
AmruthPillai authored Jan 12, 2025
2 parents c968188 + c9a2c27 commit 92856b6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ export const PictureOptions = () => {
return borderRadiusToStringMap[radius];
}, [picture.borderRadius]);

const onBorderRadiusChange = (value: BorderRadius) => {
setValue("basics.picture.borderRadius", stringToBorderRadiusMap[value]);
const onBorderRadiusChange = (value: string) => {
if (!value) return;
setValue("basics.picture.borderRadius", stringToBorderRadiusMap[value as BorderRadius]);
};

return (
Expand Down

0 comments on commit 92856b6

Please sign in to comment.