diff --git a/components/HeartButton.js b/components/HeartButton.js index d20e847..a1ab7fe 100644 --- a/components/HeartButton.js +++ b/components/HeartButton.js @@ -28,7 +28,7 @@ export default function Heart({ postRef }) { await batch.commit(); }; - return heartDoc?.exists ? ( + return heartDoc?.exists() ? ( ) : (