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