diff --git a/packages/design-system/src/components/Form/Field/Input/Input.Copy.tsx b/packages/design-system/src/components/Form/Field/Input/Input.Copy.tsx index cdca8ace6da..bfa72719a3a 100644 --- a/packages/design-system/src/components/Form/Field/Input/Input.Copy.tsx +++ b/packages/design-system/src/components/Form/Field/Input/Input.Copy.tsx @@ -64,9 +64,9 @@ const InputCopy = forwardRef( return ''; }; const doCopy = () => { - const inputValue = inputRef.current?.value || ''; - copyToClipboard(inputValue); - setCopiedValue(inputValue); + const value = inputRef.current?.value || ''; + copyToClipboard(value); + setCopiedValue(value); }; return (