Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-1885/Fix typo in Account#getUserSubscriptionData #480

Merged
merged 2 commits into from Dec 16, 2019
Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -165,7 +165,7 @@ class Account {
const customer = build(normalize(res), 'customers', res.data.id);
// TODO temporary fix to handle multiple subscriptions
let sub = customer.subscriptions;
if (!Array.isArray()) {
if (!Array.isArray(sub)) {
sub = [sub];
}
const subPlus = sub.reduce((acc, curr) => {
ProTip! Use n and p to navigate between commits in a pull request.