diff --git a/components/lib/themes/utils/sharedUtils.js b/components/lib/themes/utils/sharedUtils.js index 72e370731..d58750e2a 100644 --- a/components/lib/themes/utils/sharedUtils.js +++ b/components/lib/themes/utils/sharedUtils.js @@ -86,7 +86,8 @@ export default { return false; }, toValue(value) { - return this.isObject(value) && value.hasOwnProperty('value') ? value.value : value; + // Check for Figma (value-type) + return this.isObject(value) && value.hasOwnProperty('value') && value.hasOwnProperty('type') ? value.value : value; }, toUnit(value, variable = '') { const excludedProperties = ['opacity', 'z-index', 'line-height', 'font-weight', 'flex', 'flex-grow', 'flex-shrink', 'order'];