Skip to content

Commit

Permalink
improve too low error message clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
sammdu committed Dec 12, 2021
1 parent 1157d99 commit c313210
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ async function submitSearch() {
removeAllCarsOffers();
// show the user an error
let carsContainer = document.getElementById('carsContainer');
carsContainer.innerHTML += '<p class="error-message">Your credit score, monthly budget, or down payment is too low!</p>'
carsContainer.innerHTML += '<p class="error-message">' +
'You are not offered a loan! ' +
'Your credit score, monthly budget, or down payment is too low.</p>'
}
else {
// display the results if successful
Expand Down

0 comments on commit c313210

Please sign in to comment.