Skip to content

Commit

Permalink
[system] Fix typo to avoid infinite recursion in function call. (#41616)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-land committed Mar 25, 2024
1 parent 0102a95 commit 4be02a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export function emphasize(color, coefficient = 0.15) {
}
export function private_safeEmphasize(color, coefficient, warning) {
try {
return private_safeEmphasize(color, coefficient);
return emphasize(color, coefficient);
} catch (error) {
if (warning && process.env.NODE_ENV !== 'production') {
console.warn(warning);
Expand Down

0 comments on commit 4be02a5

Please sign in to comment.