Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix 1378 Tooltip incorrect display. #1871

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions VocaDbWeb/Scripts/Components/KnockoutExtensions/EntryToolTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const AlbumToolTip = React.memo(
const [album, setAlbum] = React.useState<AlbumContract>();

React.useEffect(() => {
if (album) return;
if (album && album.id === id) return;

if (!show) return;

Expand Down Expand Up @@ -102,7 +102,7 @@ export const ArtistToolTip = React.memo(
const [artist, setArtist] = React.useState<ArtistContract>();

React.useEffect(() => {
if (artist) return;
if (artist && artist.id === id) return;

if (!show) return;

Expand Down Expand Up @@ -153,7 +153,7 @@ export const EventToolTip = React.memo(
const [event, setEvent] = React.useState<ReleaseEventContract>();

React.useEffect(() => {
if (event) return;
if (event && event.id === id) return;

if (!show) return;

Expand Down Expand Up @@ -216,7 +216,7 @@ export const SongToolTip = React.memo(
const [song, setSong] = React.useState<SongWithPVAndVoteContract>();

React.useEffect(() => {
if (song) return;
if (song && song.id === id) return;

if (!show) return;

Expand Down Expand Up @@ -287,7 +287,7 @@ export const TagToolTip = React.memo(
const [tag, setTag] = React.useState<TagApiContract>();

React.useEffect(() => {
if (tag) return;
if (tag && tag.id === id) return;

if (!show) return;

Expand Down Expand Up @@ -339,7 +339,7 @@ export const UserToolTip = React.memo(
const [user, setUser] = React.useState<UserApiContract>();

React.useEffect(() => {
if (user) return;
if (user && user.id === id) return;

if (!show) return;

Expand Down