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