aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/tubo/events.cljs8
1 files changed, 3 insertions, 5 deletions
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