Fix custom attribute value

This commit is contained in:
dominik-zeglen 2020-10-15 13:24:15 +02:00
parent b7b5cb9d69
commit 787a5f95c8

View file

@ -196,7 +196,9 @@ const ProductAttributes: React.FC<ProductAttributesProps> = ({
displayValue={
attribute.data.values.find(
value => value.slug === attribute.value[0]
)?.name || ""
)?.name ||
attribute.value[0] ||
""
}
emptyOption={!attribute.data.isRequired}
error={!!error}