From 37232eee7e6001c34c8538f3d72eb506cdc8cde4 Mon Sep 17 00:00:00 2001 From: Shivek Khurana Date: Thu, 15 Aug 2024 15:30:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=93=20Hide=20chain=20down=20toasts=20(?= =?UTF-8?q?#21055)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/status_im/contexts/wallet/events.cljs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/status_im/contexts/wallet/events.cljs b/src/status_im/contexts/wallet/events.cljs index 37c44988cb..66a1283a3f 100644 --- a/src/status_im/contexts/wallet/events.cljs +++ b/src/status_im/contexts/wallet/events.cljs @@ -296,7 +296,6 @@ {:start-flow? true :flow-id :wallet-bridge-flow}]]]})) - (rf/reg-event-fx :wallet/select-bridge-network (fn [{:keys [db]} [{:keys [network-chain-id stack-id]}]] {:db (assoc-in db [:wallet :ui :send :bridge-to-chain-id] network-chain-id) @@ -497,16 +496,15 @@ (string/join ", ")))] (when (seq down-chain-ids) (log/info "[wallet] Chain(s) down: " down-chain-ids) + (log/info "[wallet] Chain name(s) down: " chain-names) (log/info "[wallet] Test network enabled: " (boolean test-networks-enabled?)) (log/info "[wallet] Goerli network enabled: " (boolean is-goerli-enabled?))) - {:db (assoc-in db [:wallet :statuses :blockchains] chains) - :fx [(when chains-down? - [:dispatch - [:toasts/upsert - {:id :chains-down - :type :negative - :text (i18n/label :t/provider-is-down {:chains chain-names}) - :duration constants/toast-chain-down-duration}]])]}))) + + ;; NOTE : We used to show an error toast, but disabled it because the down + ;; signal is sent randomly. Needs to be investigated and enabled again ! + ;; Context: https://github.com/status-im/status-mobile/issues/21054 + + {:db (assoc-in db [:wallet :statuses :blockchains] chains)}))) (rf/reg-event-fx :wallet/reset-selected-networks (fn [{:keys [db]}]