Skip to content

Commit

Permalink
Merge pull request #19 from TLI-Group-1/fix/too-low-error
Browse files Browse the repository at this point in the history
improve too low error message clarity
  • Loading branch information
tupi2001 authored Dec 12, 2021
2 parents 1157d99 + c313210 commit ea5aa96
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 ea5aa96

Please sign in to comment.