Commit 81ff5eb2

81ff5eb2478eMergedon cedricvidal-66f663

cedricvidal · 2 months ago · 1 file · ~1 modified

Details

Commit
81ff5eb2478e
Parent
e7a571dfc8c6

src/main.tsmodifiedView file

@@ -11,6 +11,7 @@
1111 const resetBtn = document.querySelector<HTMLButtonElement>('#reset')!;
1212
1313 const showFatal = (message: string) => {
14+ if (status.classList.contains('error')) return; // keep the first, most specific error
1415 status.textContent = `⚠ ${message}`;
1516 status.classList.add('error');
1617 };