Skip to content

Commit

Permalink
fix: nit fix on links out on heilsa
Browse files Browse the repository at this point in the history
  • Loading branch information
thoreyjona committed Oct 11, 2024
1 parent 837566a commit 400b36d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions apps/native/app/src/screens/health/health-overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
const intl = useIntl()
const theme = useTheme()
const { openBrowser } = useBrowser()
const origin = getConfig().apiUrl.replace(/api$/, '')
const origin = getConfig().apiUrl.replace(/\/api$/, '')
const [refetching, setRefetching] = useState(false)

const now = useMemo(() => new Date().toISOString(), [])
Expand Down Expand Up @@ -91,7 +91,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
healthCenterRes.refetch(),
paymentStatusRes.refetch(),
paymentOverviewRes.refetch(),
].filter(Boolean)
]
await Promise.all(promises)
} catch (e) {
// noop
Expand Down Expand Up @@ -137,7 +137,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
ellipsis
onPress={() =>
openBrowser(
`${origin}minarsidur/heilsa/thjalfun/sjukrathjalfun`,
`${origin}/minarsidur/heilsa/thjalfun/sjukrathjalfun`,
componentId,
)
}
Expand All @@ -154,7 +154,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
ellipsis
onPress={() =>
openBrowser(
`${origin}minarsidur/heilsa/hjalpartaeki-og-naering`,
`${origin}/minarsidur/heilsa/hjalpartaeki-og-naering`,
componentId,
)
}
Expand All @@ -163,7 +163,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
<TouchableOpacity
onPress={() =>
openBrowser(
`${origin}minarsidur/heilsa/heilsugaesla`,
`${origin}/minarsidur/heilsa/heilsugaesla`,
componentId,
)
}
Expand All @@ -175,7 +175,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
<TouchableOpacity
onPress={() =>
openBrowser(
`${origin}minarsidur/heilsa/heilsugaesla`,
`${origin}/minarsidur/heilsa/heilsugaesla`,
componentId,
)
}
Expand Down Expand Up @@ -236,7 +236,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
</InputRow>
<TouchableOpacity
onPress={() =>
openBrowser(`${origin}minarsidur/heilsa/yfirlit`, componentId)
openBrowser(`${origin}/minarsidur/heilsa/yfirlit`, componentId)
}
style={{ marginTop: theme.spacing[2] }}
>
Expand All @@ -246,7 +246,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
<TouchableOpacity
onPress={() =>
openBrowser(
`${origin}minarsidur/heilsa/yfirlit`,
`${origin}/minarsidur/heilsa/yfirlit`,
componentId,
)
}
Expand Down Expand Up @@ -315,7 +315,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
<TouchableOpacity
onPress={() =>
openBrowser(
`${origin}minarsidur/heilsa/greidslur/greidsluthatttaka`,
`${origin}/minarsidur/heilsa/greidslur/greidsluthatttaka`,
componentId,
)
}
Expand All @@ -327,7 +327,7 @@ export const HealthOverviewScreen: NavigationFunctionComponent = ({
<TouchableOpacity
onPress={() =>
openBrowser(
`${origin}minarsidur/heilsa/greidslur/greidsluthatttaka`,
`${origin}/minarsidur/heilsa/greidslur/greidsluthatttaka`,
componentId,
)
}
Expand Down

0 comments on commit 400b36d

Please sign in to comment.