do not use field inside error object

This commit is contained in:
Girish Ramakrishnan
2022-02-07 13:44:26 -08:00
parent f4c9d7324b
commit 9ae69bb683
2 changed files with 9 additions and 7 deletions

View File

@@ -298,7 +298,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$tran
$scope.appInstall.error.other = error.message;
}
} else if (error.statusCode === 400) {
if (error.field === 'cert') {
if (error.message.indexOf('cert') !== -1) {
$scope.appInstall.error.cert = error.message;
$scope.appInstall.certificateFileName = '';
$scope.appInstall.certificateFile = null;