fix: hide recharge seller region
This commit is contained in:
parent
b24ef884f6
commit
dad64a195b
@ -627,7 +627,6 @@
|
|||||||
meta.className = "agency-meta";
|
meta.className = "agency-meta";
|
||||||
const count = compactNumber(item.transactionCount);
|
const count = compactNumber(item.transactionCount);
|
||||||
const metaParts = [];
|
const metaParts = [];
|
||||||
if (item.regionCode && item.regionCode !== item.countryName) metaParts.push(item.regionCode);
|
|
||||||
metaParts.push("ID " + (item.account || item.userId));
|
metaParts.push("ID " + (item.account || item.userId));
|
||||||
if (count) metaParts.push(count + " orders");
|
if (count) metaParts.push(count + " orders");
|
||||||
meta.textContent = metaParts.join(" · ");
|
meta.textContent = metaParts.join(" · ");
|
||||||
@ -715,7 +714,7 @@
|
|||||||
function splitCountryRegion(countryName, regionCode) {
|
function splitCountryRegion(countryName, regionCode) {
|
||||||
const country = trimValue(countryName);
|
const country = trimValue(countryName);
|
||||||
const region = trimValue(regionCode);
|
const region = trimValue(regionCode);
|
||||||
if (!country || region) {
|
if (!country) {
|
||||||
return { countryName: country, regionCode: region };
|
return { countryName: country, regionCode: region };
|
||||||
}
|
}
|
||||||
const parts = country.split(/\s+[-\u2013\u2014]\s+/).map(trimValue).filter(Boolean);
|
const parts = country.split(/\s+[-\u2013\u2014]\s+/).map(trimValue).filter(Boolean);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user