Merge pull request #1138 from Shraeyas:develop

Fix bug with copying secret to clipboard with an override
This commit is contained in:
Maidul Islam
2023-10-29 22:56:14 -04:00
committed by GitHub

View File

@@ -172,7 +172,11 @@ export const SecretItem = memo(
const copyTokenToClipboard = () => {
const [overrideValue, value] = getValues(["value", "valueOverride"]);
navigator.clipboard.writeText((overrideValue || value) as string);
if (isOverriden) {
navigator.clipboard.writeText(value as string);
} else {
navigator.clipboard.writeText(overrideValue as string);
}
setIsSecValueCopied.on();
};