🐛 fix: update quota rendering to display $0 when no quota is available

This commit is contained in:
MartialBE 2024-05-15 04:09:00 +08:00
parent 234fb1b118
commit f7cdde4b50
No known key found for this signature in database
GPG Key ID: 27C0267EC84B0A5C

View File

@ -101,7 +101,7 @@ export default function LogTableRow({ item, userIsAdmin }) {
</TableCell>
<TableCell>{item.prompt_tokens || '0'}</TableCell>
<TableCell>{item.completion_tokens || '0'}</TableCell>
<TableCell>{item.quota ? renderQuota(item.quota, 6) : '0'}</TableCell>
<TableCell>{item.quota ? renderQuota(item.quota, 6) : '$0'}</TableCell>
<TableCell>{item.content}</TableCell>
</TableRow>
</>