diff --git a/Examples/CodePushDemoApp/demo.js b/Examples/CodePushDemoApp/demo.js
index 785612d..53e9b91 100644
--- a/Examples/CodePushDemoApp/demo.js
+++ b/Examples/CodePushDemoApp/demo.js
@@ -71,19 +71,7 @@ class CodePushDemoApp extends Component {
}
render() {
- let syncView, syncButton, progressView;
-
- if (this.state.syncMessage) {
- syncView = (
- {this.state.syncMessage}
- );
- } else {
- syncButton = (
-
- Start Sync!
-
- );
- }
+ let progressView;
if (this.state.progress) {
progressView = (
@@ -96,8 +84,10 @@ class CodePushDemoApp extends Component {
Welcome to CodePush!
- {syncButton}
- {syncView}
+
+ Start Sync!
+
+ {this.state.syncMessage || ""}
{progressView}