mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-22 09:58:46 -05:00
mayber I can't have that
This commit is contained in:
@@ -78,18 +78,6 @@ export default function FavoriteButton({
|
||||
item
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (nowPlayingIsFavorite !== isFavorite && nowPlaying?.item.Id === item.Id) {
|
||||
setIsFavorite(nowPlayingIsFavorite);
|
||||
|
||||
// Trigger toggle event if player controls performed
|
||||
// the favoriting
|
||||
onToggle ? onToggle(): {};
|
||||
}
|
||||
}, [
|
||||
nowPlayingIsFavorite
|
||||
])
|
||||
|
||||
return (
|
||||
isFetching && isUndefined(item.UserData) ? (
|
||||
<Spinner />
|
||||
|
||||
Reference in New Issue
Block a user