Skip to content

Commit

Permalink
Fix valueObject.ts to avoid errors #187
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Feb 20, 2025
1 parent a3771f5 commit 6a9f467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/domain/valueObjects/valueObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export abstract class ValueObject<T extends Primitives> {
}

equals(other: ValueObject<T>): boolean {
return other.constructor.name === this.constructor.name && other.value === this.value;
return other.value === this.value;
}

toString(): string {
Expand Down

0 comments on commit 6a9f467

Please sign in to comment.