diff --git a/client/src/events.jsx b/client/src/events.jsx index 85348e78..876d184b 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -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)); }