Skip to content

Commit 2361003

Browse files
committed
Clear inputs after submit for muted words and hashtags
1 parent efa4e69 commit 2361003

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pages/Settings/Muted.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ const Muted: Component = () => {
304304
account?.actions.addToMuteList(word, 'word', (success) => {
305305
if (!success) return;
306306
setMutedWords((hashtags) => [word, ...hashtags]);
307+
if (wordInput) wordInput.value = '';
307308
});
308309
}}
309310
>
@@ -356,6 +357,7 @@ const Muted: Component = () => {
356357
account?.actions.addToMuteList(hashtag, 'hashtag', (success) => {
357358
if (!success) return;
358359
setMutedHashtags((hashtags) => [hashtag, ...hashtags]);
360+
if (hashtagInput) hashtagInput.value = '';
359361
});
360362
}}
361363
>

0 commit comments

Comments
 (0)