Skip to content

Commit

Permalink
Remove unused var & fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Beamanator committed Sep 11, 2023
1 parent 44aa2a9 commit 5f6e614
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/pages/DemoSetupPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ const propTypes = {
};

/*
* This is a "utility page", that does this:
* - Looks at the current route
* - Determines if there's a demo command we need to call
* - If not, routes back to home
* This is a "utility page", that used to call specific actions depending on the
* route that led the user here. Now, it's just used to route the user home so we
* don't show them a "Hmm... It's not here" message (which looks broken).
*/
function DemoSetupPage(props) {
function DemoSetupPage() {
useFocusEffect(() => {
Navigation.isNavigationReady().then(() => {
Navigation.goBack(ROUTES.HOME);
Expand Down

0 comments on commit 5f6e614

Please sign in to comment.