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 3f9db008a1c..8af5dcbbff9 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,8 +89,9 @@ const getApiValues = { const warning = document .querySelector('[data-warning]') .getAttribute('data-warning'); - if (warning !== '' && typeof warning !== 'undefined') { + if (warning) { financialView.missingData(warning); + return Promise.resolve(); } return Promise.all([ this.constants().then((v) => v.json()), diff --git a/cfgov/unprocessed/apps/paying-for-college/js/disclosures/index.js b/cfgov/unprocessed/apps/paying-for-college/js/disclosures/index.js index 1549340d93d..1c8268f098e 100755 --- a/cfgov/unprocessed/apps/paying-for-college/js/disclosures/index.js +++ b/cfgov/unprocessed/apps/paying-for-college/js/disclosures/index.js @@ -39,6 +39,7 @@ const app = { urlValues: {}, init: function () { getApiValues.initialData().then((resp) => { + if (!resp) return; const [constants, expenses] = resp; financialModel.init(constants[0]); financialView.init();