(message: string, duration = 5000)
| 165 | } |
| 166 | |
| 167 | function showWarningToast(message: string, duration = 5000): void { |
| 168 | const toast = document.getElementById('warningToast'); |
| 169 | if (!toast) return; |
| 170 | |
| 171 | toast.textContent = message; |
| 172 | toast.classList.add('show'); |
| 173 | |
| 174 | setTimeout(() => { |
| 175 | toast.classList.remove('show'); |
| 176 | }, duration); |
| 177 | } |
| 178 | |
| 179 | function formatNumber(n: number): string { |
| 180 | return new Intl.NumberFormat().format(Math.floor(n)); |
no outgoing calls
no test coverage detected