Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGrouard committed Feb 15, 2023
1 parent 15b86bd commit 9b9f876
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/containers/NewBill.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ export default class NewBill {
submitButton.disabled = true
const divInput = document.querySelector(`input[data-testid="file"]`).parentNode
const errorMessage = document.createElement("div")
errorMessage.setAttribute("id", "errorMessage")
errorMessage.innerText = "Wrong file extension please use PNG,JPEG or JPG"
errorMessage.style.color = "red"
divInput.append(errorMessage)
}
else {
submitButton.disabled = false
errorMessage.style.display = "none"
this.store
.bills()
.create({
Expand Down

0 comments on commit 9b9f876

Please sign in to comment.