From 7d62e7ce18337743f5e834c32cf6878e8fb4b617 Mon Sep 17 00:00:00 2001 From: Greg Hoskin Date: Sun, 16 May 2021 14:15:49 -0700 Subject: [PATCH] fix product option color check --- framework/swell/utils/normalize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/swell/utils/normalize.ts b/framework/swell/utils/normalize.ts index 8dc7d0e28..b0cfb6193 100644 --- a/framework/swell/utils/normalize.ts +++ b/framework/swell/utils/normalize.ts @@ -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],