fix provider balance not displaying when 0

This commit is contained in:
Shroominic
2026-01-09 16:50:10 +08:00
parent 21d363f6aa
commit c4cc09d61e
+5 -1
View File
@@ -208,7 +208,11 @@ function ProviderBalance({
return <Skeleton className='h-9 w-24' />;
}
if (error || !balanceData?.ok || !balanceData.balance_data) {
if (
error ||
!balanceData?.ok ||
(balanceData.balance_data === undefined || balanceData.balance_data === null)
) {
return null;
}