Skip to content

Commit

Permalink
return raw promise
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Nov 7, 2023
1 parent 1e3a333 commit b67d082
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,10 @@ const getApiValues = {
const warning = document
.querySelector('[data-warning]')
.getAttribute('data-warning');
console.log('pre-warning', warning);
/*if (warning !== '' && typeof warning !== 'undefined') {
console.log('warning exists', warning);
if (warning !== '' && typeof warning !== 'undefined') {
financialView.missingData(warning);
const deferred = {};
deferred.promise = new Promise((resolve, reject) => {
deferred.resolve = resolve;
deferred.reject = reject;
});
return deferred;
}*/
return Promise.resolve();
}
return Promise.all([
this.constants().then((v) => v.json()),
this.expenses().then((v) => v.json()),
Expand Down

0 comments on commit b67d082

Please sign in to comment.