Skip to content

Commit

Permalink
fix: 이미 입금 완료 상태인 버튼 요청시 차단 기능 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobbymin committed Nov 10, 2024
1 parent 4fa136b commit 2fba414
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ type Props = {

export const StatusButton = ({ accepted, id }: Props) => {
const { mutate: updatePersonStatus } = usePutDepositCheck(id);

const handleChangeStatus = () => {
if (accepted) {
alert("이미 입금 완료 상태입니다.");
return;
}
updatePersonStatus();
};

Expand Down

0 comments on commit 2fba414

Please sign in to comment.