diff --git a/src/components/InboxList.jsx b/src/components/InboxList.jsx index bfe8b15..7b63459 100644 --- a/src/components/InboxList.jsx +++ b/src/components/InboxList.jsx @@ -68,7 +68,7 @@ export default function InboxList() {
{status === 'loading' &&
Loading...
} {status === 'failed' &&
Error: {error}
} - {status === 'succeeded' && inboxList.length > 0 && + {status === 'succeeded' && (inboxList.length > 0 ? inboxList.map((item) => (
- ))} + )) :
No Chats Found
)}
);