diff --git a/src/status_im2/contexts/chat/events.cljs b/src/status_im2/contexts/chat/events.cljs index 4e51be8799e..109185fb7a4 100644 --- a/src/status_im2/contexts/chat/events.cljs +++ b/src/status_im2/contexts/chat/events.cljs @@ -342,9 +342,8 @@ (rf/defn navigate-to-lightbox {:events [:chat.ui/navigate-to-lightbox]} [{:keys [db]} shared-element-id screen-params] - (let [updated-db (assoc db :shared-element-id shared-element-id)] - (reagent/next-tick #(rf/dispatch [:navigate-to :lightbox screen-params])) - {:db updated-db})) + (reagent/next-tick #(rf/dispatch [:navigate-to :lightbox screen-params])) + {:db (assoc db :shared-element-id shared-element-id)}) (rf/defn exit-lightbox-signal {:events [:chat.ui/exit-lightbox-signal]}