mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 15:51:37 -05: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)
|
||||
initial (mf/with-memo [profile]
|
||||
(let [subscribed? (-> profile :props :newsletter-subscribed)]
|
||||
(let [subscribed? (-> profile
|
||||
:props
|
||||
:newsletter-subscribed
|
||||
boolean)]
|
||||
(assoc profile :newsletter-subscribed subscribed?)))
|
||||
form (fm/use-form :spec ::profile-form :initial initial)]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue