only prompt on unsub
This commit is contained in:
parent
fec338e256
commit
1531a8b2f8
@ -28,8 +28,9 @@ function registerEvents(store) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setSubscription(sub) {
|
function setSubscription(sub) {
|
||||||
if (sub.cancel_at_period_end) {
|
const { subscription } = store.getState();
|
||||||
notify('Your subscription has been cancelled. Thank you for your support.')
|
if (subscription && sub.cancel_at_period_end) {
|
||||||
|
notify('Your subscription has been cancelled. Thank you for your support.');
|
||||||
}
|
}
|
||||||
store.dispatch(actions.setSubscription(sub));
|
store.dispatch(actions.setSubscription(sub));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user