Skip to content

Commit

Permalink
Use data path with backend domain
Browse files Browse the repository at this point in the history
  • Loading branch information
starsep committed Aug 7, 2023
1 parent 2c1c7b5 commit 3be34a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/downloadCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";
import Icon from "@mdi/react";
import { mdiDownload } from "@mdi/js";
import { Country } from "../model/country";
import { fetchCountriesData } from "../backend";
import { backendBaseUrl, fetchCountriesData } from "../backend";

export default function DownloadCard() {
const { t, i18n: { resolvedLanguage: language } } = useTranslation();
Expand Down Expand Up @@ -61,7 +61,7 @@ export default function DownloadCard() {
</select>
<a
className="button is-success mr-1"
href={selectedCountry?.dataPath}
href={selectedCountry ? backendBaseUrl + selectedCountry.dataPath : ""}
target="_blank"
rel="noreferrer"
download
Expand Down

0 comments on commit 3be34a4

Please sign in to comment.