diff --git a/SwiftParcel.Web/frontend/src/components/modals/orders/orderDetailsModal.tsx b/SwiftParcel.Web/frontend/src/components/modals/orders/orderDetailsModal.tsx index 5ea5ab0..b86daf1 100644 --- a/SwiftParcel.Web/frontend/src/components/modals/orders/orderDetailsModal.tsx +++ b/SwiftParcel.Web/frontend/src/components/modals/orders/orderDetailsModal.tsx @@ -231,12 +231,12 @@ import { confirmOrder, cancelOrder } from "../../../utils/api"; const [reason, setReason] = React.useState(""); const confirm = () => { - confirmOrder(props.order.id, props.order.company); + confirmOrder(props.order.id, props.order.courierCompany); setFinalized(true); }; const cancel = () => { - cancelOrder(props.order.id, props.order.company); + cancelOrder(props.order.id, props.order.courierCompany); setFinalized(true); };