fixed rendering bug

This commit is contained in:
2025-11-23 20:07:31 +01:00
parent baa74adcc1
commit 58b5d29040

View File

@@ -184,8 +184,10 @@ export const MyLoansPage = () => {
<Table.Cell>{formatDate(loan.start_date)}</Table.Cell>
<Table.Cell>{formatDate(loan.end_date)}</Table.Cell>
<Table.Cell>
<Text title={loan.loaned_items_name}>
{loan.loaned_items_name}
<Text>
{Array.isArray(loan.loaned_items_name)
? loan.loaned_items_name.join(", ")
: "-"}
</Text>
</Table.Cell>
<Table.Cell>{formatDate(loan.take_date)}</Table.Cell>