fix: make user branch selection and signature completion reliable

This commit is contained in:
SepehrYahyaee
2026-11-16 10:40:09 +03:30
parent 775934c056
commit e5c4b740e7
10 changed files with 406 additions and 118 deletions
+5 -5
View File
@@ -48,11 +48,11 @@ export class UserClaimBranchService {
return branches
.map((branch: any) => ({
id: String(branch._id),
name: branch.fullName || branch.name,
code: branch.code,
city: branch.city,
state: branch.state,
address: branch.address,
name: String(branch.fullName || branch.name || branch.code || "شعبه").trim(),
code: String(branch.code ?? ""),
city: String(branch.city ?? "").trim(),
state: String(branch.state ?? "").trim(),
address: String(branch.address ?? ""),
phoneNumber: branch.phoneNumber,
}))
.sort(