Check a form before sending

Your task At the top of send(), add: if (!name.trim() || !Number(minutes)) { setError("Add a name and the minutes."); return; } and then setError(""); so an old message goes away.

Getting the editor ready