diff --git a/src/components/exchange-rate/ExchangeRate.tsx b/src/components/exchange-rate/ExchangeRate.tsx index 917698f..5687e4d 100644 --- a/src/components/exchange-rate/ExchangeRate.tsx +++ b/src/components/exchange-rate/ExchangeRate.tsx @@ -32,7 +32,7 @@ export default function ExchangeRate(props: CurrencyData) { }, [props]); useEffect(() => { - axios.get(`${import.meta.env.PUBLIC_API_HOSTNAME}/exchange?base=${baseCurrency}"e=${props.targetCurrency}`) + axios.get(`https://visperto.com/api/exchange-rate/?base=${baseCurrency}"e=${props.targetCurrency}`) .then((response) => { const data: ExchangeRate = response.data; const fraction = Number(data[props.targetCurrency]) < 1 ? 5 : 2;