diff --git a/src/components/title/Info.tsx b/src/components/title/Info.tsx index daf3d3b..8ee9983 100644 --- a/src/components/title/Info.tsx +++ b/src/components/title/Info.tsx @@ -124,10 +124,7 @@ const Info = ({ info, className, router }: Props) => { {keywords.list.map(word => (
  • {word} diff --git a/src/utils/helpers.ts b/src/utils/helpers.ts index a4c1acd..8ffe821 100644 --- a/src/utils/helpers.ts +++ b/src/utils/helpers.ts @@ -46,16 +46,17 @@ export const formatMoney = (num: number, cur: string) => { style: 'currency', currency: cur, maximumFractionDigits: 0, + minimumFractionDigits: 0, }).format(num); }; export const modifyIMDbImg = (url: string, widthInPx = 600) => { - return url.replaceAll('.jpg', `UX${widthInPx}.jpg`); + return url.replace(/\.jpg/g, `UX${widthInPx}.jpg`); }; export const getProxiedIMDbImgUrl = (url: string) => { - return `/api/media_proxy?url=${encodeURIComponent(url)}`; -} + return `/api/media_proxy?url=${encodeURIComponent(url)}`; +}; export const AppError = class extends Error { constructor(message: string, public statusCode: number, cause?: any) {