fix: ts error when declar var in case (#2348)

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
This commit is contained in:
NamH 2024-03-14 17:16:14 +07:00 committed by GitHub
parent 03a0978f53
commit d9c3852997
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -178,9 +178,10 @@ type EngineBadgeProps = {
}
const EngineBadge: React.FC<EngineBadgeProps> = ({ engine }) => {
const title = 'TensorRT-LLM'
switch (engine) {
case 'nitro-tensorrt-llm':
const title = 'TensorRT-LLM'
return (
<Badge themes="primary" className="line-clamp-1" title={title}>
{title}