Skip to content

Commit

Permalink
refactor: useEffect 불필요한 의존성 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
nangkyeonglim committed May 20, 2023
1 parent ff8b601 commit c49f400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/@common/StepperInput/StepperInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const StepperInput = ({ min = 0, max = 99, step = 1, initialValue = 0, $width =

useEffect(() => {
if (inputValue !== '') getValue(Number(inputValue));
}, [getValue, inputValue]);
}, [inputValue]);

const handleChangeInput = (e: ChangeEvent<HTMLInputElement>) => {
if (e.target.value === '') setInputValue('');
Expand Down

0 comments on commit c49f400

Please sign in to comment.