(error: {message: string, status: number})
| 24 | } |
| 25 | |
| 26 | export function handleError(error: {message: string, status: number}) { |
| 27 | if (error.status === 500) { |
| 28 | throw error |
| 29 | } else { |
| 30 | return errorToast(error) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | export function fuzzyTimeAgo(date: Date | string): string { |
| 35 | const now = new Date(); |
no test coverage detected
searching dependent graphs…