Fix missing check
This commit is contained in:
parent
58cb6881c4
commit
4efc5968c6
1 changed files with 1 additions and 1 deletions
|
@ -729,7 +729,7 @@ quayApp.directive('billingOptions', function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.getCreditImage = function(creditInfo) {
|
$scope.getCreditImage = function(creditInfo) {
|
||||||
if (!creditInfo) { return 'credit.png'; }
|
if (!creditInfo || !creditInfo.type) { return 'credit.png'; }
|
||||||
|
|
||||||
var kind = creditInfo.type.toLowerCase() || 'credit';
|
var kind = creditInfo.type.toLowerCase() || 'credit';
|
||||||
var supported = {
|
var supported = {
|
||||||
|
|
Reference in a new issue