Update normalize.ts

This commit is contained in:
cond0r 2021-05-29 09:00:14 +03:00
parent 383d5e2697
commit be9a902a0a

View File

@ -39,7 +39,7 @@ const normalizeProductOption = ({
label: value, label: value,
} }
if (displayName.match(/colou?r/gi)) { if (displayName.match(/colou?r/gi)) {
const mapedColor = colorMap[value] const mapedColor = colorMap[value.toLowerCase()]
if (mapedColor) { if (mapedColor) {
output = { output = {
...output, ...output,