From 1736ab86f5d7e3f945544591c092a461f9b4dcb9 Mon Sep 17 00:00:00 2001 From: Jimmy Reyes <96630703+jrfullstack@users.noreply.github.com> Date: Sat, 24 Aug 2024 17:56:28 +0200 Subject: [PATCH] Update Player.jsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit el botón de play solo estará funcional si hay una canción cargada, de lo contrario no podrás interactuar, ya que se podia darle a play y hyacer parecer al usuario que esta reproduciendo una cancion cuando no es asi. --- src/components/Player.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Player.jsx b/src/components/Player.jsx index afd2ce3..9364833 100644 --- a/src/components/Player.jsx +++ b/src/components/Player.jsx @@ -158,6 +158,8 @@ export function Player () { setIsPlaying(!isPlaying) } + const isSongLoaded = !!currentMusic.song; + return (
@@ -166,7 +168,7 @@ export function Player () {
- @@ -180,4 +182,4 @@ export function Player () {
) -} \ No newline at end of file +}