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 authored and ZeeshanTamboli committed Mar 27, 2024
1 parent b7f5def commit e219852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-system/src/colorManipulator.js
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 e219852

Please sign in to comment.