mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-03 06:18:55 +00:00
fix(ui): remove dead 'Account is paused' error handling from flow-viz
Backend now returns quota for paused accounts, no longer returns this error.
This commit is contained in:
@@ -264,16 +264,9 @@ export function AccountCard({
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
) : quota?.error ? (
|
) : quota?.error ? (
|
||||||
quota.error === 'Account is paused' ? (
|
<div className="text-[8px] text-muted-foreground/60 truncate" title={quota.error}>
|
||||||
<div className="flex items-center gap-1.5 text-amber-600 dark:text-amber-400">
|
{quota.error.length > 20 ? `${quota.error.slice(0, 18)}...` : quota.error}
|
||||||
<Pause className="w-3 h-3" />
|
</div>
|
||||||
<span className="text-[9px] font-medium uppercase tracking-wide">Paused</span>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div className="text-[8px] text-muted-foreground/60 truncate" title={quota.error}>
|
|
||||||
{quota.error.length > 20 ? `${quota.error.slice(0, 18)}...` : quota.error}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user