diff options
| author | Henry Jameson <me@hjkos.com> | 2020-03-06 21:48:40 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2020-03-06 21:48:40 +0200 |
| commit | a485386a3b07f831859fcefa9cd429fc801fd8eb (patch) | |
| tree | ec29a29d40b0b446192d297bcfa1f406d5db8bce | |
| parent | 550080bd82bf39e35b2b481d8643bf1ac7461d7c (diff) | |
fix tests
| -rw-r--r-- | src/services/theme_data/theme_data.service.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/services/theme_data/theme_data.service.js b/src/services/theme_data/theme_data.service.js index 4d7e4f67..dd87e3cf 100644 --- a/src/services/theme_data/theme_data.service.js +++ b/src/services/theme_data/theme_data.service.js @@ -384,12 +384,13 @@ export const getColors = (sourceColors, sourceOpacity) => SLOT_ORDERED.reduce(({ : (OPACITIES[opacitySlot] || {}).defaultValue ) } - if (Number.isNaN(outputColor.a)) { - outputColor.a = 1 - } } } + if (Number.isNaN(outputColor.a) || outputColor.a === undefined) { + outputColor.a = 1 + } + if (opacitySlot) { return { colors: { ...colors, [key]: outputColor }, |
