mirror of
https://github.com/penpot/penpot.git
synced 2026-08-25 22:29:03 +00:00
🐛 Fix change username if not subscribed to newsletter
This commit is contained in:
parent
33882f44ef
commit
55df28d5dc
@ -43,7 +43,10 @@
|
|||||||
[]
|
[]
|
||||||
(let [profile (mf/deref refs/profile)
|
(let [profile (mf/deref refs/profile)
|
||||||
initial (mf/with-memo [profile]
|
initial (mf/with-memo [profile]
|
||||||
(let [subscribed? (-> profile :props :newsletter-subscribed)]
|
(let [subscribed? (-> profile
|
||||||
|
:props
|
||||||
|
:newsletter-subscribed
|
||||||
|
boolean)]
|
||||||
(assoc profile :newsletter-subscribed subscribed?)))
|
(assoc profile :newsletter-subscribed subscribed?)))
|
||||||
form (fm/use-form :spec ::profile-form :initial initial)]
|
form (fm/use-form :spec ::profile-form :initial initial)]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user