display returned message
This commit is contained in:
@@ -52,7 +52,7 @@ export const uploadAcceptance = (idEntry, file) => {
|
|||||||
url: `${API_SERVER}/wp-json/wiaas/customer-acceptance/${idEntry}/upload-file`
|
url: `${API_SERVER}/wp-json/wiaas/customer-acceptance/${idEntry}/upload-file`
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
if (typeof response.data !== 'undefined') {
|
if (typeof response.data !== 'undefined') {
|
||||||
//dispatch(updateMessages(response.data.messages, orderMessages));
|
dispatch(updateMessages(response.data.messages, orderMessages));
|
||||||
dispatch(fetchCustomerAcceptance(idEntry));
|
dispatch(fetchCustomerAcceptance(idEntry));
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
|||||||
Reference in New Issue
Block a user