Skip to content

Commit

Permalink
fix: 번호 필터 다음버튼 disabled 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeyeonJeong committed Sep 21, 2023
1 parent 93b9370 commit 7bbfd0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/_components/analysis/chart/BarChartWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const BarChartWrapper: React.FC<BarChartWrapperProps> = ({
numbers,
isLoading,
}) => {
const searchParams = useSearchParams();
const [start, setStart] = useState(START_NUM);
const [end, setEnd] = useState(END_NUM);

Expand Down Expand Up @@ -75,7 +74,10 @@ const BarChartWrapper: React.FC<BarChartWrapperProps> = ({
<Text>
{start} ~ {end}
</Text>
<NextButton disabled={end === MAX_NUM} onClick={() => handleNumbers('next')}>
<NextButton
disabled={filterByNumbers.length !== END_NUM}
onClick={() => handleNumbers('next')}
>
<ArrowIcon />
</NextButton>
</NumberBar>
Expand Down

0 comments on commit 7bbfd0a

Please sign in to comment.