[Fix] Crash on onboarding due to nil value (#16884)

Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
This commit is contained in:
Mohamed Javid 2023-08-04 19:52:43 +08:00 committed by GitHub
parent e5b6378e15
commit bad9aa9e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 13 deletions

View File

@ -110,19 +110,20 @@
:icon-background :blur
:icon :i/arrow-left
:on-press navigate-back}
:right-section-buttons [(when config/quo-preview-enabled?
{:type :grey
:icon :i/reveal-whitelist
:icon-background :blur
:on-press #(rf/dispatch [:navigate-to
:quo2-preview])})
{:type :grey
:icon :i/info
:icon-background :blur
:on-press #(rf/dispatch
[:show-bottom-sheet
{:content getting-started-doc
:shell? true}])}]}]])
:right-section-buttons (cond-> [{:type :grey
:icon :i/info
:icon-background :blur
:on-press #(rf/dispatch
[:show-bottom-sheet
{:content getting-started-doc
:shell? true}])}]
config/quo-preview-enabled?
(conj {:type :grey
:icon :i/reveal-whitelist
:icon-background :blur
:on-press #(rf/dispatch [:navigate-to
:quo2-preview])}))}]])
(defn new-to-status
[]