Added guard for missing currency in currency symbol helper

no refs
This commit is contained in:
Rishabh 2021-10-20 11:51:54 +05:30
parent ff4d0b8ce0
commit 82470a723c

View File

@ -6,6 +6,9 @@ export default class CurrencySymbolHelper extends Helper {
@service feature;
compute([currency]) {
return getSymbol(currency);
if (currency) {
return getSymbol(currency);
}
return '';
}
}