From f4b1283ffa68540e97d968887d72c4ac71f2b184 Mon Sep 17 00:00:00 2001 From: Gregory Thompson Date: Tue, 11 Jan 2022 17:34:48 -0500 Subject: [PATCH] Update HeartButton.js There's a typo in this code, the method is exists() --- components/HeartButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ? ( ) : (