Obsługa błędów liczby ujemnej w JavaScript

const totalAmountInput = document.getElementById("Total-amount");
Famous Finch