Use the actual result not the potentially cached value

This commit is contained in:
Johannes Zellner
2017-06-20 13:10:07 +02:00
parent 3845065085
commit 8fadb3badc

View File

@@ -150,7 +150,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
if (!result.token) return;
AppStore.getSubscription($scope.appstoreConfig, function (error, result) {
AppStore.getSubscription(result, function (error, result) {
if (error) return console.error(error);
$scope.isPaying = result.plan.id !== 'free' && result.plan.id !== 'undecided';