Update SecretInput.tsx

This commit is contained in:
Daniel Hougaard
2024-06-21 14:31:29 +02:00
parent eca6871cbc
commit 00d83f9136
@@ -15,7 +15,7 @@ const replaceContentWithDot = (str: string) => {
}; };
const syntaxHighlight = (content?: string | null, isVisible?: boolean, isImport?: boolean) => { const syntaxHighlight = (content?: string | null, isVisible?: boolean, isImport?: boolean) => {
if (isImport) return "IMPORTED"; if (isImport && !content) return "IMPORTED";
if (content === "") return "EMPTY"; if (content === "") return "EMPTY";
if (!content) return "EMPTY"; if (!content) return "EMPTY";
if (!isVisible) return replaceContentWithDot(content); if (!isVisible) return replaceContentWithDot(content);