Skip to content

Commit

Permalink
[system] Fix typo to avoid infinite recursion in function call. (#41678)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Li <33362998+michael-land@users.noreply.github.com>
  • Loading branch information
ZeeshanTamboli and michael-land authored Mar 27, 2024
1 parent 5461733 commit a8fe71a
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 a8fe71a

Please sign in to comment.