diff --git a/frontend/src/components/v2/SecretInput/SecretInput.tsx b/frontend/src/components/v2/SecretInput/SecretInput.tsx index 1573fa961..10ed24f43 100644 --- a/frontend/src/components/v2/SecretInput/SecretInput.tsx +++ b/frontend/src/components/v2/SecretInput/SecretInput.tsx @@ -56,12 +56,12 @@ export const SecretInput = forwardRef( const update = (code: string) => { setText(code); if (onChange) { - onChange(code); + onChange(code.trim()); } }; const onInput = (event: any) => { - const code = event.target.value.trim() || ""; + const code = event.target.value || ""; update(code); }; @@ -80,7 +80,7 @@ export const SecretInput = forwardRef(