Skip to content

Commit

Permalink
Step 6.5: Handle success and fail for data actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and Dotan Simha committed Nov 22, 2016
1 parent 71dd080 commit 55faafa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions imports/ui/components/partyDetails/partyDetails.js
Expand Up @@ -30,6 +30,12 @@ class PartyDetails {
name: this.party.name,
description: this.party.description
}
}, (error) => {
if (error) {
console.log('Oops, unable to update the party...');
} else {
console.log('Done!');
}
});
}
}
Expand Down

0 comments on commit 55faafa

Please sign in to comment.