Skip to content

Commit

Permalink
Merge pull request #896 from 5sControl/894-2h-add-order-section-error…
Browse files Browse the repository at this point in the history
…-when-not-filling-all-fields-in-new-order

fix: add order params
  • Loading branch information
pkostukevich authored Dec 20, 2024
2 parents bc09e5c + 07089e8 commit f6861bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions mobile/src/api/orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ export interface IOperationReferenceUpdateBody {
}

export interface IAddOrder {
orderNumber: string;
orderNumber: number;
name: string;
additionalInfo: string;
estimatedAt?: string;
}
2 changes: 1 addition & 1 deletion mobile/src/pages/order/addOrder/addOrder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const AddOrder: React.FC = () => {
setIsModalOpen(false);
setLoading(true);
ORDER_REQUEST.addOrder(
{ orderNumber: orderNumber, name: orderName, additionalInfo: "", ...(estimatedAt && { estimatedAt }) },
{ orderNumber: parseInt(orderNumber), name: orderName, ...(estimatedAt && { estimatedAt }) },
setLoading,
setToastMessage,
() => {}
Expand Down

0 comments on commit f6861bd

Please sign in to comment.