From 9ffab3d2ddd85d8fc3cfdaf4322a85e90b6c563f Mon Sep 17 00:00:00 2001 From: Lemon Date: Sat, 28 Mar 2026 18:35:16 -0700 Subject: [PATCH] Fix double-tap reaction not showing emoji on the post MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The double-click handler was setting the user-reaction query cache to a plain string instead of a ResolvedEmoji object. RenderResolvedEmoji expects { content: '❤️' }, not just '❤️'. --- package-lock.json | 25 ------------------------- src/components/ReactionButton.tsx | 2 +- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3f2e4a62..e4a49672 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4706,7 +4706,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4720,7 +4719,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4734,7 +4732,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4748,7 +4745,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4762,7 +4758,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4776,7 +4771,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4790,7 +4784,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4804,7 +4797,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4818,7 +4810,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4832,7 +4823,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4846,7 +4836,6 @@ "cpu": [ "loong64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4860,7 +4849,6 @@ "cpu": [ "loong64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4874,7 +4862,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4888,7 +4875,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4902,7 +4888,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4916,7 +4901,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4930,7 +4914,6 @@ "cpu": [ "s390x" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4944,7 +4927,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4958,7 +4940,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4972,7 +4953,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4986,7 +4966,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5000,7 +4979,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5014,7 +4992,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5028,7 +5005,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -5042,7 +5018,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ diff --git a/src/components/ReactionButton.tsx b/src/components/ReactionButton.tsx index 82d358d0..3d0ab990 100644 --- a/src/components/ReactionButton.tsx +++ b/src/components/ReactionButton.tsx @@ -150,7 +150,7 @@ export function ReactionButton({ if (hasReacted) return; setMenuOpen(false); const prevStats = queryClient.getQueryData(['event-stats', eventId]); - queryClient.setQueryData(['user-reaction', eventId], '❤️'); + queryClient.setQueryData(['user-reaction', eventId], { content: '❤️' }); if (prevStats) { queryClient.setQueryData(['event-stats', eventId], { ...prevStats,