Cancel responses on startup

This commit is contained in:
Gregory Schier
2023-11-06 13:06:15 -08:00
parent 655f5a8eed
commit 6ccc42dc3f
7 changed files with 48 additions and 25 deletions

View File

@@ -8,8 +8,8 @@ interface Props {
}
export function StatusTag({ response, className, showReason }: Props) {
const { status, error } = response;
const label = error ? 'ERR' : status;
const { status } = response;
const label = status < 100 ? 'ERR' : status;
return (
<span
className={classNames(