mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 02:30:55 +00:00
feat: enhance onboarding forms with error handling and step persistence
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user