From deecbf87e4345431b749c6d3574a367722bef998 Mon Sep 17 00:00:00 2001 From: Michael Li <33362998+michael-land@users.noreply.github.com> Date: Sat, 23 Mar 2024 22:01:45 -0500 Subject: [PATCH] fix: fix typo to avoid infinite recursion in function call. Signed-off-by: Michael Li <33362998+michael-land@users.noreply.github.com> --- packages/mui-system/src/colorManipulator/colorManipulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-system/src/colorManipulator/colorManipulator.js b/packages/mui-system/src/colorManipulator/colorManipulator.js index e5a5a87b1b6a4a..7ec96f0060ab18 100644 --- a/packages/mui-system/src/colorManipulator/colorManipulator.js +++ b/packages/mui-system/src/colorManipulator/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);