0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed @price.currency_symbol helper

closes #11984

The refactor to new settings lost the uppercasing of the currency string, this puts it back
This commit is contained in:
Fabien 'egg' O'Carroll 2020-07-01 13:26:30 +02:00 committed by GitHub
parent 7f7484669e
commit cbdf33bfb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ function haxGetMembersPriceData() {
}, {});
priceData.currency = stripePlans[0].currency;
priceData.currency_symbol = CURRENCY_SYMBOLS[priceData.currency];
priceData.currency_symbol = CURRENCY_SYMBOLS[priceData.currency.toUpperCase()];
if (Number.isInteger(priceData.monthly) && Number.isInteger(priceData.yearly)) {
return priceData;