feat: enhance onboarding forms with error handling and step persistence

This commit is contained in:
Marshal
2026-06-19 23:04:39 +00:00
parent 9f5d287139
commit ce8189d5fe
4 changed files with 132 additions and 36 deletions

View File

@@ -468,7 +468,7 @@ export class CompaniesService {
const owner = await this.companiesRepo.findByTin(dto.tin);
if (owner && owner.id !== company.id) {
throw new ConflictException(
`Company with TIN ${dto.tin} already exists`,
`This TIN (${dto.tin}) is already registered to another company. Please check the number and try again.`,
);
}
companyUpdates.tin = dto.tin;