diff --git a/packages/format-library/src/text-color/index.js b/packages/format-library/src/text-color/index.js index 9d8241544760bf..04fd8ee6ce55aa 100644 --- a/packages/format-library/src/text-color/index.js +++ b/packages/format-library/src/text-color/index.js @@ -75,7 +75,7 @@ function TextColorEdit( { [ contentRef, value, colors ] ); - const hasColorsToChoose = colors.length || ! allowCustomControl; + const hasColorsToChoose = !! colors.length || allowCustomControl; if ( ! hasColorsToChoose && ! isActive ) { return null; }