From 4efc5968c637030aa8cecd8ab64f4d1a8cc7a2dd Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 15 Nov 2013 18:34:54 -0500 Subject: [PATCH] Fix missing check --- static/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/app.js b/static/js/app.js index e7f1554d1..02248862a 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -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 = {