fix build error

This commit was merged in pull request #20.
This commit is contained in:
Ebube
2024-03-19 13:33:33 +01:00
parent 4a3f46c19b
commit 2890677472
2 changed files with 8 additions and 12 deletions
@@ -11,17 +11,13 @@ const LetsGetStarted: React.FC = () => {
const inputRef = React.useRef<HTMLInputElement>(null);
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
let {
target: { name, value },
} = e;
let { name, value } = e.target as HTMLInputElement;
setPinValues((prev) => ({ ...prev, [name]: value }));
};
const handleInput = (e: React.FormEvent<HTMLInputElement>) => {
let {
target: { name, value },
} = e;
let { name, value } = e.target as HTMLInputElement;
if (name === "bvn") {
const regex = /^[0-9]+$/;
@@ -34,7 +30,6 @@ const LetsGetStarted: React.FC = () => {
console.log("object not found");
}
}
console.log(e.target.value.length);
};
return (