Skip to content

Commit

Permalink
Hide ITArmyRequest information
Browse files Browse the repository at this point in the history
  • Loading branch information
opengs committed Sep 6, 2024
1 parent 4536447 commit b38d5c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pages/dashboard/ItArmyIDComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ async function loadItArmyName() {
ITArmyAPIKeyEmpty.value = true;
ITArmyNameLoadError.value = "";
} else {
ITArmyAPIKeyEmpty.value = false;
ITArmyNameLoadError.value = JSON.stringify(response);
if (response.error === "REQUEST_FAILED") {
// hide info
ITArmyAPIKeyEmpty.value = false;
ITArmyNameLoadError.value = "Request to remote server failed";
} else {
ITArmyAPIKeyEmpty.value = false;
ITArmyNameLoadError.value = JSON.stringify(response);
}
}
}
}
Expand Down

0 comments on commit b38d5c8

Please sign in to comment.