0
Fork 0
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:
Alejandro Alonso 2022-05-10 10:40:31 +02:00 committed by Alonso Torres
parent 33882f44ef
commit 55df28d5dc

View file

@ -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)]