misc: added handling for case enforcement

This commit is contained in:
Sheen Capadngan
2025-01-16 19:10:00 +08:00
parent 6ee446e574
commit 440f93f392
11 changed files with 111 additions and 19 deletions
@@ -125,8 +125,8 @@ export const CreateSecretForm = ({
if (!secretKey || isWholeKeyHighlighted) {
e.preventDefault();
setValue("key", key);
const keyStr = autoCapitalize ? key.toUpperCase() : key;
setValue("key", keyStr);
if (value) {
setValue("value", value);
}