🐛 Fixed toggle newsletter subscription (#146)
closes https://github.com/TryGhost/Ghost/issues/12996
This commit is contained in:
parent
97dd3a0470
commit
701ca69053
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user