Skip to content

Commit 0b2cf70

Browse files
committed
๐Ÿ› fix: ๋ฉ”์‹œ์ง€๊ฐ€ 0๊ฐœ์ผ ๋•Œ ํ™”๋ฉด ์•ˆ๋ณด์ด๋Š” ์˜ค๋ฅ˜ ์ˆ˜์ •
1 parent b7929fe commit 0b2cf70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

โ€Žsrc/pages/Recipient/Recipient.jsxโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function Recipient() {
7171
setOffset((prev) => prev + limit);
7272
};
7373

74-
if (!postData || messages.length === 0) return <div>Loading...</div>;
74+
if (!postData || messages.length < 0) return <div>Loading...</div>;
7575

7676
return (
7777
<>
@@ -85,7 +85,7 @@ export default function Recipient() {
8585
}
8686
>
8787
<div className={styles['card-container']}>
88-
<Card recipientId={messages[0].recipientId} empty={true} />
88+
<Card recipientId={id} empty={true} />
8989
{messages.map((msg) => (
9090
<Card
9191
key={msg.id}

0 commit comments

Comments
ย (0)