🔀 Merge pull request #1124 from Lissy93/FIX/currency-widget-flags

[FIX] Updates the endpoint for currency flags
Fixes #1096
This commit is contained in:
Alicia Sykes 2023-02-26 22:47:50 +00:00 committed by GitHub
commit 0d8d7fc28c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,8 +64,8 @@ export const getCountryFlag = (countryCode, dimens) => {
/* Given a currency code, return path to corresponding countries flag icon */
export const getCurrencyFlag = (currency) => {
const cdn = 'https://raw.githubusercontent.com/transferwise/currency-flags';
return `${cdn}/master/src/flags/${currency.toLowerCase()}.png`;
const cdn = 'https://raw.githubusercontent.com/Lissy93/currency-flags';
return `${cdn}/master/flags_png_rectangle/${currency.toLowerCase()}.png`;
};
/* Given a Latitude & Longitude object, and optional zoom level, return link to OSM */