We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hasOwn
hasOwnProperty
getColor
1 parent d17bf7c commit a50689fCopy full SHA for a50689f
packages/theming/src/utils/getColor.ts
@@ -181,8 +181,7 @@ const toColor = (
181
colors[hue as keyof typeof colors] /* ex. `hue` = 'primaryHue' */ ||
182
hue; /* ex. `hue` = '#fd5a1e' */
183
184
- // eslint-disable-next-line n/no-unsupported-features/es-builtins
185
- if (Object.hasOwn(palette, _hue)) {
+ if (Object.prototype.hasOwnProperty.call(palette, _hue)) {
186
_hue = palette[_hue]; /* ex. `hue` = 'grey' */
187
}
188
0 commit comments