From e8c8dbc0985411b2e01cac9b510d94a8736bd191 Mon Sep 17 00:00:00 2001 From: Eric Dvorsak Date: Tue, 10 Oct 2017 10:44:17 +0200 Subject: [PATCH] [bug] fixes #2064 red screen caused by carousel --- src/status_im/components/carousel/carousel.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status_im/components/carousel/carousel.cljs b/src/status_im/components/carousel/carousel.cljs index 95632c9be9..7f0ae9ccd7 100644 --- a/src/status_im/components/carousel/carousel.cljs +++ b/src/status_im/components/carousel/carousel.cljs @@ -151,7 +151,7 @@ (if (not= page-width state-page-width) (do (reagent.core/set-state component {:pageWidth page-width}) - (.setState component {:layout (.-layout (.-nativeEvent event))})) + (.setState component (clj->js {:layout (.-layout (.-nativeEvent event))}))) (scroll-to component page-position 0)))) (defn get-pages [component data children]