Skip to content

Commit

Permalink
正しくハッシュタグで検索できるように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaoka committed Oct 2, 2024
1 parent dcae0f2 commit 30d3736
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/streams/LiverEventCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,13 @@ function onClickCard(evt: MouseEvent) {
}
function setSearchString(str: string) {
const hashtag = `#${str}`;
// 同じものなら検索を解除
if (searchStore.searchString === str) {
if (searchStore.searchString === hashtag) {
searchStore.setSearchString("");
return;
}
searchStore.setSearchString(str);
searchStore.setSearchString(hashtag);
}
</script>
<template>
Expand Down

0 comments on commit 30d3736

Please sign in to comment.