Skip to content

Commit

Permalink
Change route for /
Browse files Browse the repository at this point in the history
  • Loading branch information
avvazana committed Jan 2, 2019
1 parent 18e5b9c commit 284bc1a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/assets/javascripts/bundle.js 10.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const App = () => {
<ProtectedRoute path="/" component={NavBarContainer}/>
<ProtectedRoute path="/" component={MusicPlayer}/>
</div>


);
};

Expand Down
2 changes: 1 addition & 1 deletion frontend/util/route_util.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Protected = ({component: Component, path, loggedIn, exact}, props) => {
loggedIn ? (
<Component {...props} />
) : (
<Redirect to="/login" />
<Redirect to="/" />
)
)}/>
}
Expand Down

0 comments on commit 284bc1a

Please sign in to comment.