Skip to content

Commit

Permalink
fix: restrict-template-expressions 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JBR90 committed Dec 3, 2024
1 parent 86b9e85 commit d8ca407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/nextjs/src/hooks/useGeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export function isGenerationHookLoading(status: UseGenerationStatus): boolean {
case UseGenerationStatus.ERROR:
return false;
default:
throw Error(`Unhandled UseGenerationStatus ${status}`);
throw Error(`Unhandled UseGenerationStatus ${String(status)}`);
}
}

Expand All @@ -511,7 +511,7 @@ function isGenerationRecordLoading(status: GenerationStatus): boolean {
case GenerationStatus.FLAGGED:
return false;
default:
throw Error(`Unhandled GenerationStatus ${status}`);
throw Error(`Unhandled GenerationStatus ${String(status)}`);
}
}

Expand Down

0 comments on commit d8ca407

Please sign in to comment.