From 1e3a33310fca942548f1efb0a85179623b24c779 Mon Sep 17 00:00:00 2001 From: Wyatt Pearsall Date: Tue, 7 Nov 2023 11:56:52 -0500 Subject: [PATCH] always return promise --- .../js/disclosures/dispatchers/get-api-values.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cfgov/unprocessed/apps/paying-for-college/js/disclosures/dispatchers/get-api-values.js b/cfgov/unprocessed/apps/paying-for-college/js/disclosures/dispatchers/get-api-values.js index 3f9c2e2a6e9..6da91a5d095 100755 --- a/cfgov/unprocessed/apps/paying-for-college/js/disclosures/dispatchers/get-api-values.js +++ b/cfgov/unprocessed/apps/paying-for-college/js/disclosures/dispatchers/get-api-values.js @@ -89,7 +89,8 @@ const getApiValues = { const warning = document .querySelector('[data-warning]') .getAttribute('data-warning'); - if (warning !== '' && typeof warning !== 'undefined') { + console.log('pre-warning', warning); + /*if (warning !== '' && typeof warning !== 'undefined') { console.log('warning exists', warning); financialView.missingData(warning); const deferred = {}; @@ -98,7 +99,7 @@ const getApiValues = { deferred.reject = reject; }); return deferred; - } + }*/ return Promise.all([ this.constants().then((v) => v.json()), this.expenses().then((v) => v.json()),