4
0
forked from crowetic/commerce

fix product option color check

This commit is contained in:
Greg Hoskin 2021-05-16 14:15:49 -07:00
parent c8cf6e733c
commit 7d62e7ce18

View File

@ -38,7 +38,7 @@ const normalizeProductOption = ({
label: value.name,
id: value?.id || id,
}
if (displayName === 'Color') {
if (displayName.match(/colou?r/gi)) {
output = {
...output,
hexColors: [value.name],