From a8fe71a6998ab6d42a6817621f096995ec3bdd27 Mon Sep 17 00:00:00 2001 From: Zeeshan Tamboli Date: Wed, 27 Mar 2024 18:21:48 +0530 Subject: [PATCH] [system] Fix typo to avoid infinite recursion in function call. (#41678) Co-authored-by: Michael Li <33362998+michael-land@users.noreply.github.com> --- packages/mui-system/src/colorManipulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-system/src/colorManipulator.js b/packages/mui-system/src/colorManipulator.js index e5a5a87b1b6a4a..7ec96f0060ab18 100644 --- a/packages/mui-system/src/colorManipulator.js +++ b/packages/mui-system/src/colorManipulator.js @@ -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);