diff --git a/src/Expensify.js b/src/Expensify.js
index e83e06622a758..4959d3c80c142 100644
--- a/src/Expensify.js
+++ b/src/Expensify.js
@@ -31,7 +31,7 @@ const propTypes = {
};
const defaultProps = {
- redirectTo: '',
+ redirectTo: ROUTES.HOME,
};
class Expensify extends Component {
@@ -76,9 +76,22 @@ class Expensify extends Component {
);
}
+
+ console.log(`this.state.authToken: ${this.state.authToken}`);
+ if (this.state.authToken === undefined) {
+ console.log('will got to login');
+ return (
+
+
+
+
+ );
+ }
+
+ console.log('will got to home page before' + this.props.redirectTo);
const redirectTo = !this.state.authToken ? ROUTES.SIGNIN : this.props.redirectTo;
+ console.log('will got to home page after' + redirectTo);
return (
-
// TODO: Mobile does not support Beforeunload
//
diff --git a/src/lib/actions/Report.js b/src/lib/actions/Report.js
index 6a9d0f8890239..992db910344e3 100644
--- a/src/lib/actions/Report.js
+++ b/src/lib/actions/Report.js
@@ -220,6 +220,7 @@ function updateReportWithNewAction(reportID, reportAction) {
* Initialize our pusher subscriptions to listen for new report comments
*/
function subscribeToReportCommentEvents() {
+ console.log(`private-user-accountID-${currentUserAccountID}`);
const pusherChannelName = `private-user-accountID-${currentUserAccountID}`;
if (Pusher.isSubscribed(pusherChannelName) || Pusher.isAlreadySubscribing(pusherChannelName)) {
return;