diff --git a/src/components/VueColorAvatar.vue b/src/components/VueColorAvatar.vue index 2c35768..7db89fc 100644 --- a/src/components/VueColorAvatar.vue +++ b/src/components/VueColorAvatar.vue @@ -66,7 +66,7 @@ function getWrapperShapeClassName() { } function getWrapperShapeStyle() { - return SHAPE_STYLE_SET[avatarOption.value.wrapperShape] + return SHAPE_STYLE_SET[avatarOption.value.wrapperShape ?? WrapperShape.Circle] } const svgContent = ref('')