Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit a029add

Browse files
author
Will Anderson
committed
Use done() for download method to bubble any errors
1 parent 2b6c99c commit a029add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/CodePushDemoApp/index.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var CodePushDemoApp = React.createClass({
3030
return { update: false };
3131
},
3232
handlePress: function() {
33-
this.state.update.download().then((localPackage) => {
33+
this.state.update.download().done((localPackage) => {
3434
localPackage.apply().done();
3535
});
3636
},

0 commit comments

Comments
 (0)