Skip to content

Commit

Permalink
Allow pasting seed phrase (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing authored Jul 29, 2024
1 parent 0ecb8ad commit e7c0add
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/components/seedPhraseInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ const SeedWordInput = React.forwardRef<HTMLInputElement, SeedWordInputProps>(
const handlePasteInput = (e: React.ClipboardEvent<HTMLInputElement>) => {
e.preventDefault();

if (DEV_MODE || process.env.WALLET_LABEL) {
const { clipboardData } = e;
const pastedText = clipboardData.getData('text');
handlePaste(pastedText);
}
const { clipboardData } = e;
const pastedText = clipboardData.getData('text');
handlePaste(pastedText);
};

return (
Expand Down

0 comments on commit e7c0add

Please sign in to comment.