Skip to content

Commit

Permalink
2173: Add comment back in
Browse files Browse the repository at this point in the history
  • Loading branch information
LeandraH committed Oct 17, 2024
1 parent 01ef52d commit ab734f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const Header = ({
if (currentRouteIsPoi && notFromDeepLink) {
const poisRouteParams = route.params as RoutesParamsType[PoisRouteType]
if (poisRouteParams.slug || poisRouteParams.multipoi !== undefined) {
return { text: t('locations'), language: undefined }
return { text: t('locations'), language: undefined } // system language
}
}

Expand All @@ -231,7 +231,7 @@ const Header = ({
}
}

return { text: previousRoute.name, language: undefined }
return { text: previousRoute.name, language: undefined } // system language

Check warning on line 234 in native/src/components/Header.tsx

View check run for this annotation

CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)

❌ New issue: Complex Method

Header.getHeaderText has a cyclomatic complexity of 11, threshold = 10. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
}

return (
Expand Down

0 comments on commit ab734f1

Please sign in to comment.