We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d320cb8 commit ab2042cCopy full SHA for ab2042c
1 file changed
src/common/utils/colorHash.ts
@@ -119,7 +119,9 @@ export function textToColorHash({
119
return color.hex().toString();
120
}
121
122
- color = getColorcode(stringToHexColorHash(text)) as Color;
+ if (!color) {
123
+ color = getColorcode(stringToHexColorHash(text)) as Color;
124
+ }
125
126
if (options.enabledColors === "all" && color) {
127
// all colors are allowed as return value
0 commit comments