diff --git a/src/shared/domain/valueObjects/valueObject.ts b/src/shared/domain/valueObjects/valueObject.ts index 8f0bf90..7085d37 100644 --- a/src/shared/domain/valueObjects/valueObject.ts +++ b/src/shared/domain/valueObjects/valueObject.ts @@ -27,7 +27,7 @@ export abstract class ValueObject { } equals(other: ValueObject): boolean { - return other.constructor.name === this.constructor.name && other.value === this.value; + return other.value === this.value; } toString(): string {