diff options
author | Eric Bailey <git@esb.lol> | 2024-02-29 19:30:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 19:30:30 -0600 |
commit | cecb6e4e69eaccedf56f503589a59044fd7c6d19 (patch) | |
tree | 90dd52ea6a797f4f251a13ccc675c7ef6cbe851f /src/components/TagMenu/index.web.tsx | |
parent | 21bdddcfbe6ae85c15a4544fe5fd751b7e94d960 (diff) | |
download | voidsky-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.web.tsx')
-rw-r--r-- | src/components/TagMenu/index.web.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/TagMenu/index.web.tsx b/src/components/TagMenu/index.web.tsx index 3aebfbba2..4fcb4c812 100644 --- a/src/components/TagMenu/index.web.tsx +++ b/src/components/TagMenu/index.web.tsx @@ -104,9 +104,9 @@ export function TagMenu({ : _(msg`Mute ${truncatedTag}`), onPress() { if (isMuted) { - removeMutedWord({value: sanitizedTag, targets: ['tag']}) + removeMutedWord({value: tag, targets: ['tag']}) } else { - upsertMutedWord([{value: sanitizedTag, targets: ['tag']}]) + upsertMutedWord([{value: tag, targets: ['tag']}]) } }, testID: 'tagMenuMute', @@ -127,7 +127,6 @@ export function TagMenu({ preferences, tag, truncatedTag, - sanitizedTag, upsertMutedWord, removeMutedWord, ]) |