aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-03-06 21:48:40 +0200
committerHenry Jameson <me@hjkos.com>2020-03-06 21:48:40 +0200
commita485386a3b07f831859fcefa9cd429fc801fd8eb (patch)
treeec29a29d40b0b446192d297bcfa1f406d5db8bce /src
parent550080bd82bf39e35b2b481d8643bf1ac7461d7c (diff)
fix tests
Diffstat (limited to 'src')
-rw-r--r--src/services/theme_data/theme_data.service.js7
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 },