diff --git a/dpp-frontend/src/views/PassportView.vue b/dpp-frontend/src/views/PassportView.vue index 769d85fc4..cb8c91ed5 100644 --- a/dpp-frontend/src/views/PassportView.vue +++ b/dpp-frontend/src/views/PassportView.vue @@ -879,7 +879,10 @@ export default { } // Check if the response is empty and give an error - if (!response) { + if ( + !response || + response.status != 200 + ){ this.errorObj.title = "Failed to return passport"; this.errorObj.description = "It was not possible to complete the passport transfer."; @@ -949,7 +952,7 @@ export default { } // Check if the response is empty and give an error - if (!response) { + if (!response || response.status != 200) { this.errorObj.title = "Failed to return passport"; this.errorObj.description = "It was not possible to complete the passport transfer."; @@ -1011,7 +1014,7 @@ export default { } // Check if the response is empty and give an error - if (!response) { + if (!response || response.status != 200){ this.errorObj.title = "Failed to return passport"; this.errorObj.description = "It was not possible to complete the passport transfer.";