Skip to content

Commit

Permalink
correct the error mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanshtiwari001 committed Oct 14, 2023
1 parent 8ef93f5 commit 9b1db22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Home() {

useEffect(() => {
adjustWidth();
}, [name]);
});

const adjustWidth = () => {
if (flag) {
Expand All @@ -42,7 +42,6 @@ function Home() {
inputField.style.width = "initail";
} else {
inputField.style.width = width + "ch";
console.log(width);
}
}
};
Expand Down

0 comments on commit 9b1db22

Please sign in to comment.