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:
IshaVenikar
2024-02-22 14:26:45 +05:30
committed by GitHub
parent 783758be39
commit 9199bc8e07
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">laconic_wallet</string>
<string name="app_name">Laconic</string>
</resources>
+4
View File
@@ -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, ''),