mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
🐛 Fixed toggle newsletter subscription (#146)
closes https://github.com/TryGhost/Ghost/issues/12996
This commit is contained in:
parent
97dd3a0470
commit
701ca69053
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue