Merge pull request #10567 from marination/number-card-country-issue

fix: Number Card doesn't fetch data if country not India.
This commit is contained in:
sahil28297 2020-06-03 01:23:38 +05:30 committed by GitHub
commit 9fc93a80f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {