Skip to content

Commit bad9aa9

Browse files
[Fix] Crash on onboarding due to nil value (#16884)
Signed-off-by: Mohamed Javid <[email protected]>
1 parent e5b6378 commit bad9aa9

File tree

1 file changed

+14
-13
lines changed
  • src/status_im2/contexts/onboarding/new_to_status

1 file changed

+14
-13
lines changed

src/status_im2/contexts/onboarding/new_to_status/view.cljs

+14-13
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,20 @@
110110
:icon-background :blur
111111
:icon :i/arrow-left
112112
:on-press navigate-back}
113-
:right-section-buttons [(when config/quo-preview-enabled?
114-
{:type :grey
115-
:icon :i/reveal-whitelist
116-
:icon-background :blur
117-
:on-press #(rf/dispatch [:navigate-to
118-
:quo2-preview])})
119-
{:type :grey
120-
:icon :i/info
121-
:icon-background :blur
122-
:on-press #(rf/dispatch
123-
[:show-bottom-sheet
124-
{:content getting-started-doc
125-
:shell? true}])}]}]])
113+
:right-section-buttons (cond-> [{:type :grey
114+
:icon :i/info
115+
:icon-background :blur
116+
:on-press #(rf/dispatch
117+
[:show-bottom-sheet
118+
{:content getting-started-doc
119+
:shell? true}])}]
120+
121+
config/quo-preview-enabled?
122+
(conj {:type :grey
123+
:icon :i/reveal-whitelist
124+
:icon-background :blur
125+
:on-press #(rf/dispatch [:navigate-to
126+
:quo2-preview])}))}]])
126127

127128
(defn new-to-status
128129
[]

0 commit comments

Comments
 (0)