mirror of
https://github.com/selfxyz/self.git
synced 2026-01-10 07:08:10 -05:00
SELF-1268: Fix paste button on recovery screen (#1513)
* Fix paste button on recovery screen * Improve recovery paste button accessibility * recovery screen bugfix * simplify fix. remove pressable logic
This commit is contained in:
@@ -48,7 +48,8 @@ const RecoverWithPhraseScreen: React.FC = () => {
|
||||
const [restoring, setRestoring] = useState(false);
|
||||
const onPaste = useCallback(async () => {
|
||||
const clipboard = (await Clipboard.getString()).trim();
|
||||
if (ethers.Mnemonic.isValidMnemonic(clipboard)) {
|
||||
// bugfix: perform a simple clipboard check; ethers.Mnemonic.isValidMnemonic doesn't work
|
||||
if (clipboard) {
|
||||
setMnemonic(clipboard);
|
||||
Keyboard.dismiss();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user