mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-28 20:25:29 +08:00
fix(progress): remove unused log
This commit is contained in:
@@ -47,7 +47,6 @@ const getCurrentColor = (
|
||||
if (colorKeys.length === 0) return defaultColors[type]
|
||||
|
||||
const customColorKey = colorKeys.find(key => ratio <= +key)
|
||||
console.log(customColorKey)
|
||||
if (!customColorKey || Number.isNaN(+customColorKey)) return defaultColors[type]
|
||||
return colors[+customColorKey]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user