Skip to content

Commit

Permalink
feat: 차등 정산이 적용되었을 때 제출 버튼을 활성화하는 로직을 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe committed Aug 21, 2024
1 parent 464e27d commit fbff55e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ const PutAndDeleteBillActionModal = ({
addAdjustedMember,
onSubmit: putMemberReportListInAction,
} = useMemberReportListInAction(billAction.actionId, billAction.price);
const {inputList, onChange} = useMemberReportInput({
const {
inputList,
onChange,
canSubmit: isChangedMemberReportInput,
} = useMemberReportInput({
data: memberReportListInAction,
addAdjustedMember,
totalPrice: billAction.price,
Expand Down Expand Up @@ -122,7 +126,7 @@ const PutAndDeleteBillActionModal = ({
<FixedButton
type="submit"
variants="primary"
disabled={!canSubmit}
disabled={!(canSubmit || isChangedMemberReportInput)}
onDeleteClick={() => onDelete(billAction.actionId)}
>
수정 완료
Expand Down

0 comments on commit fbff55e

Please sign in to comment.