forked from Yara724/api
fix: make user branch selection and signature completion reliable
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user