diff --git a/app/planets/[id]/page.tsx b/app/planets/[id]/page.tsx
index 640229bf..6b98954d 100644
--- a/app/planets/[id]/page.tsx
+++ b/app/planets/[id]/page.tsx
@@ -52,7 +52,7 @@ export default function ClassificationDetail({ params }: { params: { id: string
if (!params.id) return;
const fetchClassification = async () => {
- if (!params.id || !session) return; // Check if session is available
+ if (!params.id || !session) return;
const { data, error } = await supabase
.from("classifications")
diff --git a/content/Comments/CommentSingle.tsx b/content/Comments/CommentSingle.tsx
index f242ed30..067573d1 100644
--- a/content/Comments/CommentSingle.tsx
+++ b/content/Comments/CommentSingle.tsx
@@ -12,6 +12,8 @@ interface CommentCardProps {
createdAt: string;
children?: React.ReactNode;
parentCommentId?: number | null;
+ category?: string;
+ value?: string | null;
replyCount: number;
isSurveyor?: boolean;
configuration?: {
@@ -22,7 +24,19 @@ interface CommentCardProps {
classificationConfig?: any;
};
-export function CommentCard({ author, classificationConfig, classificationId, content, createdAt, replyCount, parentCommentId, isSurveyor, configuration }: CommentCardProps) {
+export function CommentCard({
+ author,
+ classificationConfig,
+ category,
+ classificationId,
+ content,
+ createdAt,
+ value,
+ replyCount,
+ parentCommentId,
+ isSurveyor,
+ configuration
+}: CommentCardProps) {
const supabase = useSupabaseClient();
const handleConfirmComment = async () => {
@@ -55,12 +69,17 @@ export function CommentCard({ author, classificationConfig, classificationId, co
{author}
{isSurveyor &&
Surveyor
}
- {configuration?.planetType &&
{configuration.planetType}
}
+
{category}
{content}
+ {value && category && (
+
+ {category} = {value}
+
+ )}
{configuration && (