diff --git a/src/components/AppartCard.jsx b/src/components/AppartCard.jsx index 779f395..c70317f 100644 --- a/src/components/AppartCard.jsx +++ b/src/components/AppartCard.jsx @@ -99,6 +99,9 @@ export default function AppartCard({ annonce, onDelete, onUpdated }) { commentP !== (annonce.COMMENTAIRE_P || "") || commentA !== (annonce.COMMENTAIRE_A || ""); + const hasPaulinFeedback = (noteP ?? 0) > 0 || !!commentP?.trim(); + const hasAgatheFeedback = (noteA ?? 0) > 0 || !!commentA?.trim(); + const handleSave = async () => { setSaving(true); await updateAnnonce(annonce.id, { @@ -204,8 +207,19 @@ export default function AppartCard({ annonce, onDelete, onUpdated }) { Notes et commentaires - {hasChanges && ( - + {(hasPaulinFeedback || hasAgatheFeedback) && ( + + {hasPaulinFeedback && ( + + P + + )} + {hasAgatheFeedback && ( + + A + + )} + )} {expanded ? : }