From d3d25ea0e1196179633f42c3e15759a5ae832dad Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Thu, 20 Jan 2022 14:10:01 +0200 Subject: [PATCH] debug --- src/cljs/status_dapp/db.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cljs/status_dapp/db.cljs b/src/cljs/status_dapp/db.cljs index 10073bc..17fadaa 100644 --- a/src/cljs/status_dapp/db.cljs +++ b/src/cljs/status_dapp/db.cljs @@ -27,11 +27,12 @@ (when (nil? web3) (js/setTimeout (fn [] - (when-let [web3 (get-web3)] - (re-frame/dispatch [:set-in [:web3] web3]) - (when-not dapp-store? - (re-frame/dispatch [:set-in [:view-id] :web3])))) - 300)) + (if-let [web3 (get-web3)] + (do (re-frame/dispatch [:set-in [:web3] web3]) + (when-not dapp-store? + (re-frame/dispatch [:set-in [:view-id] :web3]))) + (js/alert "NOOOOO"))) + 100)) (def all [{:title "Exchanges"