diff --git a/src/components/MapCard.tsx b/src/components/MapCard.tsx
index 48b523f..98a5474 100644
--- a/src/components/MapCard.tsx
+++ b/src/components/MapCard.tsx
@@ -22,7 +22,7 @@ const MapCard = ({ map, userId, isCurrentUser = false }) => {
{map.title}
by {map.authorName}
-
+
{(map.tags || []).map((tag, index) => (
{tag}
diff --git a/src/pages/user-maps/[userId].tsx b/src/pages/user-maps/[userId].tsx
index 7c6e2b8..d04a25c 100644
--- a/src/pages/user-maps/[userId].tsx
+++ b/src/pages/user-maps/[userId].tsx
@@ -52,7 +52,7 @@ const UserMapsPage = () => {
id: likedMapsIds[index].id,
...mapSnap.data(),
authorId: likedMapsIds[index].authorId,
- authorName: authorSnap.data().name // 或其他你需要的作者信息
+ authorName: authorSnap.data().name
};
}
return null;
@@ -237,6 +237,13 @@ const UserMapsPage = () => {
)}
{map.title}
+
+ {(map.tags || []).map((tag, index) => (
+
+ {tag}
+
+ ))}
+
{formatDate(map.publishDate)}
@@ -261,6 +268,13 @@ const UserMapsPage = () => {
{`${map.title}`}
{`${map.authorName}`}
+
+ {(map.tags || []).map((tag, index) => (
+
+ {tag}
+
+ ))}
+
{formatDate(map.publishDate)}