From 787a5f95c82230762f3759f309892ae8db44afec Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Thu, 15 Oct 2020 13:24:15 +0200 Subject: [PATCH] Fix custom attribute value --- .../components/ProductAttributes/ProductAttributes.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/products/components/ProductAttributes/ProductAttributes.tsx b/src/products/components/ProductAttributes/ProductAttributes.tsx index 1f50a4daa..ab972a8ae 100644 --- a/src/products/components/ProductAttributes/ProductAttributes.tsx +++ b/src/products/components/ProductAttributes/ProductAttributes.tsx @@ -196,7 +196,9 @@ const ProductAttributes: React.FC = ({ displayValue={ attribute.data.values.find( value => value.slug === attribute.value[0] - )?.name || "" + )?.name || + attribute.value[0] || + "" } emptyOption={!attribute.data.isRequired} error={!!error}