From b9081b2b1900bce25e50c19b4f16bc59d05034fe Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sat, 20 Apr 2024 20:48:47 +0200 Subject: feat: remove extra guards for stream type on streams enqueue --- src/frontend/tubo/events.cljs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/frontend') diff --git a/src/frontend/tubo/events.cljs b/src/frontend/tubo/events.cljs index b8f3b1f..4b0ca5c 100644 --- a/src/frontend/tubo/events.cljs +++ b/src/frontend/tubo/events.cljs @@ -478,11 +478,9 @@ {:db (assoc db :show-audio-player true) :store (assoc store :show-audio-player true) :fx (into [] (conj - (map #(when (= (:type %) "stream") - (identity [:dispatch [::add-to-media-queue %]])) streams) - (when (= (:type (first streams)) "stream") - [:dispatch [::fetch-audio-player-stream (first streams) - (count (:media-queue db)) (= (count (:media-queue db)) 0)]])))})) + (map #(identity [:dispatch [::add-to-media-queue %]]) streams) + [:dispatch [::fetch-audio-player-stream (first streams) + (count (:media-queue db)) (= (count (:media-queue db)) 0)]]))})) (rf/reg-event-db ::modal -- cgit v1.2.3