Skip to content

Commit a50689f

Browse files
authored
fix(theming): swap hasOwn for hasOwnProperty call in getColor (#1970)
1 parent d17bf7c commit a50689f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/theming/src/utils/getColor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ const toColor = (
181181
colors[hue as keyof typeof colors] /* ex. `hue` = 'primaryHue' */ ||
182182
hue; /* ex. `hue` = '#fd5a1e' */
183183

184-
// eslint-disable-next-line n/no-unsupported-features/es-builtins
185-
if (Object.hasOwn(palette, _hue)) {
184+
if (Object.prototype.hasOwnProperty.call(palette, _hue)) {
186185
_hue = palette[_hue]; /* ex. `hue` = 'grey' */
187186
}
188187

0 commit comments

Comments
 (0)