Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #162 from AppliedIS/feature-authpromise
Browse files Browse the repository at this point in the history
Fixed autoSaveService tests.
  • Loading branch information
jefferey committed Nov 21, 2016
2 parents a4a8307 + a5b2d08 commit 07e58fd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ module.exports = function(ngModule) {

let save = function save(callback){
if (!stateService.access_token || !stateService.ein) {
return;
if(callback) callback();
return undefined;
}

return apiService.saveApplication(stateService.access_token, stateService.ein, stateService.formData).then(function () {
Expand Down

0 comments on commit 07e58fd

Please sign in to comment.