Skip to content

Commit

Permalink
fix(frontend): backend availability error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Brunkow Moser committed May 13, 2024
1 parent 3c9c40d commit 7805296
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dpp-frontend/src/views/PassportView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down Expand Up @@ -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.";
Expand Down Expand Up @@ -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.";
Expand Down

0 comments on commit 7805296

Please sign in to comment.