Skip to content

Commit

Permalink
prevent asking twice to switch network
Browse files Browse the repository at this point in the history
  • Loading branch information
ginesdt committed Dec 11, 2023
1 parent c087d37 commit c0219ef
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/streamtide/ui/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@
; request a change of network
(re-frame/dispatch [::chain-events/request-switch-chain
chain-id
{:on-error [::chain-events/request-add-chain
(:web3-chain config-map)
{:on-error
[::dispatch-n
[[::error-notification/show-error "Cannot switch network"]
[::logging/error "Cannot switch network"]]]}]}])
{:chain-info (:web3-chain config-map)
:on-error [::dispatch-n
[[::error-notification/show-error "Cannot switch network"]
[::logging/error "Cannot switch network"]]]}])
; interrupt the event processing
(assoc context :queue #queue [])))))))

Expand Down

0 comments on commit c0219ef

Please sign in to comment.