From ff9e2ff57209bb93dcbe494d824f0bddd6df409c Mon Sep 17 00:00:00 2001 From: Wyatt Pearsall Date: Tue, 7 Nov 2023 12:25:32 -0500 Subject: [PATCH] Guard inital data --- .../unprocessed/apps/paying-for-college/js/disclosures/index.js | 1 + 1 file changed, 1 insertion(+) 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();