Skip to content

Commit

Permalink
Fix: Disabled removedCard button on cardList length 1
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltySalt77 committed Feb 14, 2024
1 parent e7a7e9e commit 220c2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/hitchhiking/panel/CardContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const CardContainer = ({
<IconButton
sx={style.buttonStyle}
onClick={() => removeCard(cardList[cardList.length - 1]?.recruitId)}
disabled={cardList.length === 0}
disabled={cardList.length === 1}
>
<ChevronRight
sx={{ ...style.buttonIconStyle, color: 'text.alternative' }}
Expand Down

0 comments on commit 220c2c8

Please sign in to comment.