Fix missing check

This commit is contained in:
Joseph Schorr 2013-11-15 18:34:54 -05:00
parent 58cb6881c4
commit 4efc5968c6

View file

@ -729,7 +729,7 @@ quayApp.directive('billingOptions', function () {
};
$scope.getCreditImage = function(creditInfo) {
if (!creditInfo) { return 'credit.png'; }
if (!creditInfo || !creditInfo.type) { return 'credit.png'; }
var kind = creditInfo.type.toLowerCase() || 'credit';
var supported = {