After login/register, get the latest subscription

This commit is contained in:
Girish Ramakrishnan
2019-05-05 11:13:29 -07:00
parent 9c3cae5eca
commit deb8e117ad

View File

@@ -285,7 +285,11 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
return;
}
onSubscribed();
getSubscription(function (error) {
if (error) return console.error(error);
onSubscribed();
});
});
}
};
@@ -449,6 +453,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
return callback(error);
}
} else {
$scope.validSubscription = true;
$scope.subscription = subscription;
}