fix error when switching dark/light mode while splash screen is shown (#13759)

This commit is contained in:
Parvesh Monu 2022-08-04 23:05:20 +05:30 committed by GitHub
parent cdbd85f116
commit 13bacd4a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -144,9 +144,8 @@
(conj {:ms 900 :dispatch
[:navigate-to :create-community-channel
(get-in db [:navigation/screen-params :create-community-channel])]}))]
(when (and (some? root-id) (or (nil? cur-theme) (zero? cur-theme)))
(navigation.core/dismiss-all-modals)
(when (or (nil? cur-theme) (zero? cur-theme))
(fx/merge cofx
(merge
{::multiaccounts/switch-theme (if (= :dark theme) 2 1)}