Skip to content

Commit

Permalink
different warning check
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Nov 7, 2023
1 parent 3eb9cdd commit b43051f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b43051f

Please sign in to comment.