Skip to content

Commit

Permalink
Merge pull request #765 from sparcs-kaist/#763-채팅-endpoint-오류-수정
Browse files Browse the repository at this point in the history
채팅 endpoint 오류 수정
  • Loading branch information
predict-woo authored May 28, 2024
2 parents 0e4181a + 02ccdc7 commit 7acf06a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const MessagePaySettlement = ({ type, color }: MessagePaySettlementProps) => (
}}
className="selectable"
>
{type === "payment" ? (
{type === "settlement" ? (
<>
<CreditCardRoundedIcon style={{ fontSize: "18px" }} />
제가 택시비를 결제했어요 !
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const ModalChatPayment = ({
if (isRequesting.current) return;
isRequesting.current = true;
await axios({
url: "/rooms/commitSettlement",
url: "/rooms/commitPayment",
method: "post",
data: { roomId: roomInfo._id },
onSuccess: () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ModalChatSettlement = ({
if (isRequesting.current || !isValidAccount) return;
isRequesting.current = true;
axios({
url: "/rooms/commitPayment",
url: "/rooms/commitSettlement",
method: "post",
data: { roomId: roomInfo._id },
onSuccess: async () => {
Expand Down

0 comments on commit 7acf06a

Please sign in to comment.