From 6f01413a2794a5a8cc28012357861ee515874712 Mon Sep 17 00:00:00 2001 From: Sarah Alli Date: Fri, 4 Oct 2024 15:15:01 -0400 Subject: [PATCH] sizing logic reverted --- packages/gestalt/src/Avatar/InternalAvatar.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/gestalt/src/Avatar/InternalAvatar.tsx b/packages/gestalt/src/Avatar/InternalAvatar.tsx index 80698b6336..4b09203812 100644 --- a/packages/gestalt/src/Avatar/InternalAvatar.tsx +++ b/packages/gestalt/src/Avatar/InternalAvatar.tsx @@ -34,7 +34,6 @@ function InternalAvatar(props: Props) { webExperimentName: 'web_gestalt_visualRefresh', mwebExperimentName: 'web_gestalt_visualRefresh', }); - const defaultSize = isInVRExperiment ? 'md' : 'fit'; const { accessibilityLabel, color, @@ -42,14 +41,14 @@ function InternalAvatar(props: Props) { isPressed, name, outline, - size = defaultSize, + size = 'fit', src, verified, } = props; const [isImageLoaded, setIsImageLoaded] = useState(true); const handleImageError = () => setIsImageLoaded(false); - const width = size === 'fit' ? '100%' : sizes[size] || 48; - const height = size === 'fit' ? '' : sizes[size] || 48; + const width = size === 'fit' ? '100%' : sizes[size]; + const height = size === 'fit' ? '' : sizes[size]; return (