feat: trim for aplhabet sort

This commit is contained in:
2026-04-06 13:23:25 +03:00
parent a58f438dce
commit 4b02c6e9d3
25 changed files with 73 additions and 59 deletions

View File

@@ -136,7 +136,7 @@ class CountryStore {
if (code && this.createCountryData[language].name) {
await languageInstance(language as Language).post("/country", {
code: code,
name: name,
name: name.trim(),
});
runInAction(() => {
@@ -156,7 +156,7 @@ class CountryStore {
await languageInstance(secondaryLanguage as Language).patch(
`/country/${code}`,
{
name: name,
name: name.trim(),
}
);
}
@@ -212,7 +212,7 @@ class CountryStore {
if (name) {
await languageInstance(language as Language).patch(`/country/${code}`, {
name: name,
name: name.trim(),
});
runInAction(() => {