Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit a770469

Browse files
committed
fix: correctly set recipient name in GiftCard component
1 parent a2ba9f1 commit a770469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/utils/GiftCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function GiftCard({
2525
useEffect(() => {
2626
const fetchRecipientName = async () => {
2727
const name = await findRecipientById(Number(recipient));
28-
setRecipientName(name);
28+
setRecipientName(name?.name!);
2929
};
3030

3131
fetchRecipientName();

0 commit comments

Comments
 (0)