forked from crowetic/commerce
fix product option color check
This commit is contained in:
parent
c8cf6e733c
commit
7d62e7ce18
@ -38,7 +38,7 @@ const normalizeProductOption = ({
|
|||||||
label: value.name,
|
label: value.name,
|
||||||
id: value?.id || id,
|
id: value?.id || id,
|
||||||
}
|
}
|
||||||
if (displayName === 'Color') {
|
if (displayName.match(/colou?r/gi)) {
|
||||||
output = {
|
output = {
|
||||||
...output,
|
...output,
|
||||||
hexColors: [value.name],
|
hexColors: [value.name],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user