Skip to content

Commit

Permalink
feat : update hooks/useSubmitOrder.js (#85)
Browse files Browse the repository at this point in the history
주문 하기 에러 수정
  • Loading branch information
JungYeonHwi committed Oct 31, 2023
1 parent b61badb commit c1b1660
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hooks/useSubmitOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ const useSubmitOrder = () => {
const orderData = useRecoilValue(OrderData);

const submitOrder = async() => {
const data = await storeService.submitOrder(orderData);
let data = '';
if (orderData !== '') {
data = await storeService.submitOrder(orderData);
}

return data;
}

Expand Down

0 comments on commit c1b1660

Please sign in to comment.