display returned message

This commit is contained in:
GotPPay
2018-08-18 22:05:31 +02:00
parent 0a5d69f6f2
commit 936193ba0c

View File

@@ -52,7 +52,7 @@ export const uploadAcceptance = (idEntry, file) => {
url: `${API_SERVER}/wp-json/wiaas/customer-acceptance/${idEntry}/upload-file`
}).then(response => {
if (typeof response.data !== 'undefined') {
//dispatch(updateMessages(response.data.messages, orderMessages));
dispatch(updateMessages(response.data.messages, orderMessages));
dispatch(fetchCustomerAcceptance(idEntry));
}
}).catch(error => {