misc: added secret name trimming

This commit is contained in:
Sheen Capadngan
2024-06-27 19:41:00 +08:00
parent 7cdc47cd3a
commit b2d6563994
3 changed files with 3 additions and 3 deletions
@@ -11,7 +11,7 @@ import { SecretType, UserWsKeyPair } from "@app/hooks/api/types";
import { PopUpNames, usePopUpAction, usePopUpState } from "../../SecretMainPage.store";
const typeSchema = z.object({
key: z.string(),
key: z.string().trim().min(1, { message: "Secret key is required" }),
value: z.string().optional()
});