Created
June 19, 2020 15:00
-
-
Save SimonHoiberg/104075d471e0648cb8a2847317790192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleCancelSubscription = (end: boolean) => async () => { | |
try { | |
const subscription = await StripeManager.handleSubscription(user.subscriptionID, end); | |
setSubscription(subscription); | |
} catch (error) { | |
// Let the user know that something went wrong here... | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment