mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Fix change username if not subscribed to newsletter
This commit is contained in:
parent
33882f44ef
commit
55df28d5dc
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue