mirror of
https://github.com/Equicord/Equicord.git
synced 2025-03-30 12:11:58 -04:00
SpotifyLyrics Update
Prevents sending a notification when Translating fails when no lyrics. (https://cdn.nest.rip/uploads/57b7de17-db84-4783-b298-2885b4e19ebc.png)
This commit is contained in:
parent
9a96d856a9
commit
b754ca184d
1 changed files with 2 additions and 5 deletions
|
@ -104,9 +104,8 @@ export const SpotifyLrcStore = proxyLazyWebpack(() => {
|
|||
}
|
||||
|
||||
if (provider === Provider.Translated || provider === Provider.Romanized) {
|
||||
if (!currentInfo?.useLyric) {
|
||||
showNotif("No lyrics", `No lyrics to ${provider === Provider.Translated ? "translate" : "romanize"}`);
|
||||
return;
|
||||
if (!currentInfo?.useLyric || !currentInfo.lyricsVersions[currentInfo.useLyric]) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const fetcher = provider === Provider.Translated ? translateLyrics : romanizeLyrics;
|
||||
|
@ -148,5 +147,3 @@ export const SpotifyLrcStore = proxyLazyWebpack(() => {
|
|||
});
|
||||
return store;
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue