forked from cerc-io/laconic-wallet
Add validation in add account from hd path (#30)
* Add validation in add account from hd path * Change app name
This commit is contained in:
parent
783758be39
commit
9199bc8e07
@ -1,3 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">laconic_wallet</string>
|
||||
<string name="app_name">Laconic</string>
|
||||
</resources>
|
||||
|
@ -25,6 +25,10 @@ const HDPath = ({
|
||||
});
|
||||
|
||||
const handleChange = (key: keyof PathState, value: string) => {
|
||||
if (key === 'secondNumber' && value !== '' && !['0', '1'].includes(value)) {
|
||||
return;
|
||||
}
|
||||
|
||||
setPath({
|
||||
...path,
|
||||
[key]: value.replace(/[^0-9]/g, ''),
|
||||
|
Loading…
Reference in New Issue
Block a user