From 751ca6e4cd37c8c90d50ab081d06a204fa2d8ec1 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 1 Feb 2017 12:30:51 -0800 Subject: [PATCH] Log out when cancelling subscription --- app/sync/index.js | 1 + app/ui/components/modals/PaymentNotificationModal.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/sync/index.js b/app/sync/index.js index 749caea1f9..dcd99eeece 100644 --- a/app/sync/index.js +++ b/app/sync/index.js @@ -451,6 +451,7 @@ export async function logout () { export async function cancelTrial () { await session.endTrial(); + await session.logout(); await resetLocalData(); } diff --git a/app/ui/components/modals/PaymentNotificationModal.js b/app/ui/components/modals/PaymentNotificationModal.js index a1981705fd..19c7ffb9e7 100644 --- a/app/ui/components/modals/PaymentNotificationModal.js +++ b/app/ui/components/modals/PaymentNotificationModal.js @@ -40,15 +40,15 @@ class PaymentNotificationModal extends Component {

Hi {session.getFirstName()},

- Your Insomnia Plus trial has come to an end. Please subscribe to a plan + Your Insomnia Plus trial has come to an end. Please enter your billing info to continue using Plus features like encrypted data synchronization and backup.


- End Subscription + Cancel Subscription - {" "} +