Skip to content

Commit 2a9758b

Browse files
committed
fix: ensure we use the correct customization color when during onboarding or login when displaying the enable-notifications screen
1 parent 5b0b2d3 commit 2a9758b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/status_im/contexts/onboarding/enable_notifications/view.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545

4646
(defn enable-notification-form
4747
[{:keys [insets params]}]
48-
(let [profile-color (rf/sub [:onboarding/customization-color])
48+
(let [profile-color (rf/sub [:onboarding/customization-color
49+
{:onboarding? (:onboarding? params)}])
4950
[third-party-checked?
5051
set-third-party-checked] (rn/use-state true)
5152
on-enable-notifications (rn/use-callback

src/status_im/subs/onboarding.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
:onboarding/customization-color
77
:<- [:onboarding/profile]
88
:<- [:profile/customization-color]
9-
:<- [:onboarding/new-account?]
10-
(fn [[{:keys [color]} customization-color new-account?]]
11-
(if new-account?
9+
(fn [[{:keys [color]} customization-color]
10+
[_sub-id {:keys [onboarding?]}]]
11+
(if onboarding?
1212
color
1313
customization-color)))

0 commit comments

Comments
 (0)