rename listener function

This commit is contained in:
Kendall Garner 2023-06-03 10:12:46 -07:00 committed by Jeff
parent 85a10c799a
commit 3aef2a80a7
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ export const Lyrics = () => {
const songRef = useRef<string | null>(null);
useEffect(() => {
lyrics?.retrieveRemoteLyrics(
lyrics?.remoteLyricsListener(
(_event: any, songName: string, lyricSource: string, lyric: string) => {
if (songName === songRef.current) {
setSource(lyricSource);