fix ui check when budget is 0 (#6506)

This commit is contained in:
Ishaan Jaff 2024-10-30 15:55:58 +05:30 committed by GitHub
parent ed42b55a84
commit b419170cbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -267,7 +267,7 @@ const ViewUserDashboard: React.FC<ViewUserDashboardProps> = ({
{user.spend ? user.spend?.toFixed(2) : "-"}
</TableCell>
<TableCell>
{user.max_budget ? user.max_budget : "Unlimited"}
{user.max_budget !== null ? user.max_budget : "Unlimited"}
</TableCell>
<TableCell>
<Grid numItems={2}>