Skip to content

Commit

Permalink
fix: Double "Created with visualize.admin.ch" footnote when downloadi…
Browse files Browse the repository at this point in the history
…ng an image of a published chart
  • Loading branch information
bprusinowski committed Jan 8, 2025
1 parent e9b787a commit 52e50c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/chart-footnotes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { Component, Measure } from "@/domain/data";
import { useTimeFormatLocale } from "@/formatters";
import { useDataCubesMetadataQuery } from "@/graphql/hooks";
import { useLocale } from "@/locales/use-locale";
import { DISABLE_SCREENSHOT_ATTR } from "@/utils/use-screenshot";

export const useFootnotesStyles = makeStyles<Theme, { useMarginTop: boolean }>(
(theme) => ({
Expand Down Expand Up @@ -292,7 +293,7 @@ export const VisualizeLink = ({ createdWith }: { createdWith: ReactNode }) => {
const locale = useLocale();

return (
<Typography variant="caption" color="grey.600">
<Typography variant="caption" color="grey.600" {...DISABLE_SCREENSHOT_ATTR}>
{createdWith}
<Link
href={`https://visualize.admin.ch/${locale}/`}
Expand Down

0 comments on commit 52e50c4

Please sign in to comment.