about summary refs log tree commit diff
path: root/src/components/TagMenu/index.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-02-29 19:30:30 -0600
committerGitHub <noreply@github.com>2024-02-29 19:30:30 -0600
commitcecb6e4e69eaccedf56f503589a59044fd7c6d19 (patch)
tree90dd52ea6a797f4f251a13ccc675c7ef6cbe851f /src/components/TagMenu/index.tsx
parent21bdddcfbe6ae85c15a4544fe5fd751b7e94d960 (diff)
downloadvoidsky-cecb6e4e69eaccedf56f503589a59044fd7c6d19.tar.zst
Bump API SDK, add validation to MutedWords (#3055)
* Bump API SDK, add validation to MutedWords

* Tweaks to error state

* Comment

* Early return
Diffstat (limited to 'src/components/TagMenu/index.tsx')
-rw-r--r--src/components/TagMenu/index.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/TagMenu/index.tsx b/src/components/TagMenu/index.tsx
index 2fec7a188..c18c0d6a2 100644
--- a/src/components/TagMenu/index.tsx
+++ b/src/components/TagMenu/index.tsx
@@ -215,14 +215,12 @@ export function TagMenu({
                           if (isMuted) {
                             resetUpsert()
                             removeMutedWord({
-                              value: sanitizedTag,
+                              value: tag,
                               targets: ['tag'],
                             })
                           } else {
                             resetRemove()
-                            upsertMutedWord([
-                              {value: sanitizedTag, targets: ['tag']},
-                            ])
+                            upsertMutedWord([{value: tag, targets: ['tag']}])
                           }
                         })
                       }}>