fix(dashboard,js-sdk,types): Remove redundant body for markAsDelivered (#10964)
Resolves CMRC-623
This commit is contained in:
committed by
GitHub
parent
45b47bf813
commit
d4e042e9ad
+8
-11
@@ -265,17 +265,14 @@ const Fulfillment = ({
|
||||
})
|
||||
|
||||
if (res) {
|
||||
await markAsDelivered(
|
||||
{},
|
||||
{
|
||||
onSuccess: () => {
|
||||
toast.success(t("orders.fulfillment.toast.fulfillmentDelivered"))
|
||||
},
|
||||
onError: (e) => {
|
||||
toast.error(e.message)
|
||||
},
|
||||
}
|
||||
)
|
||||
await markAsDelivered(undefined, {
|
||||
onSuccess: () => {
|
||||
toast.success(t("orders.fulfillment.toast.fulfillmentDelivered"))
|
||||
},
|
||||
onError: (e) => {
|
||||
toast.error(e.message)
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user