Skip to content

Commit

Permalink
update gcp app engine API hostname to cloudflare workers API hostname…
Browse files Browse the repository at this point in the history
… for exchange rate API route
  • Loading branch information
ayaz committed May 29, 2024
1 parent 186edbe commit ce11277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/exchange-rate/ExchangeRate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function ExchangeRate(props: CurrencyData) {
}, [props]);

useEffect(() => {
axios.get(`${import.meta.env.PUBLIC_API_HOSTNAME}/exchange?base=${baseCurrency}&quote=${props.targetCurrency}`)
axios.get(`https://visperto.com/api/exchange-rate/?base=${baseCurrency}&quote=${props.targetCurrency}`)
.then((response) => {
const data: ExchangeRate = response.data;
const fraction = Number(data[props.targetCurrency]) < 1 ? 5 : 2;
Expand Down

0 comments on commit ce11277

Please sign in to comment.