fix: Number Card doesn't fetch data if country not India.

This commit is contained in:
marination 2020-06-02 19:46:13 +05:30
parent 20200b8812
commit dee71e5167

View file

@ -128,7 +128,7 @@ function go_to_list_with_filters(doctype, filters) {
}
function shorten_number(number, country) {
country = country || '';
country = (country == 'India') ? country : '';
const number_system = get_number_system(country);
let x = Math.abs(Math.round(number));
for (const map of number_system) {