Fixup support view if not yet logged into the appstore

This commit is contained in:
Johannes Zellner
2022-02-21 22:38:11 +01:00
parent 3766101122
commit 0dfd217a86
+4 -1
View File
@@ -89,7 +89,10 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
Client.onReady(function () {
Client.getSubscription(function (error, result) {
if (error && error.statusCode === 412) return; // not yet registered
if (error && error.statusCode === 402) {
$scope.ready = true;
return; // not yet registered
}
if (error) return console.error(error);
$scope.subscription = result;