Skip to content

Commit 043722c

Browse files
committed
fix: ensure we use the default customization colour when onboarding profile color does not exist
1 parent f4d3c4e commit 043722c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/status_im/subs/onboarding.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
:<- [:profile/customization-color]
99
(fn [[{:keys [color]} customization-color]
1010
[_sub-id {:keys [onboarding?]}]]
11-
(if onboarding?
12-
color
13-
customization-color)))
11+
(cond
12+
(and onboarding? (some? color)) color
13+
:else customization-color)))

0 commit comments

Comments
 (0)