mirror of
https://github.com/penpot/penpot.git
synced 2026-02-28 23:34:26 +00:00
🐛 Fix change username if not subscribed to newsletter
This commit is contained in:
committed by
Alonso Torres
parent
33882f44ef
commit
55df28d5dc
@@ -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)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user