🐛 Fixed toggle newsletter subscription (#146)

closes https://github.com/TryGhost/Ghost/issues/12996
This commit is contained in:
Kevin 2021-06-01 10:57:41 +02:00 committed by GitHub
parent 97dd3a0470
commit 701ca69053

View File

@ -250,7 +250,7 @@ const AccountActions = () => {
const onToggleSubscription = (e, sub) => {
e.preventDefault();
this.context.onAction('updateNewsletter', {subscribed: !sub});
onAction('updateNewsletter', {subscribed: !sub});
};
let label = subscribed ? 'Subscribed' : 'Unsubscribed';