- {pet.tags.slice(0, 5).map((tag) => (
+
+ {pet.tags.slice(0, 4).map((tag) => (
))}
- {pet.tags.length > 5 && (
+ {pet.tags.length > 4 && (
...
)}
diff --git a/src/features/pets/types/pets.types.ts b/src/features/pets/types/pets.types.ts
index db4b577..df4b4a8 100644
--- a/src/features/pets/types/pets.types.ts
+++ b/src/features/pets/types/pets.types.ts
@@ -3,7 +3,7 @@ import { PetStatus } from "../enums/pet-status.enum"
export interface Pet {
id: string
name: string
- specieName: string
+ species: string
status: PetStatus
tags: string[]
}
diff --git a/src/shared/test-utils/mocks/pets-mocks.ts b/src/shared/test-utils/mocks/pets-mocks.ts
index 20aea7e..1ac7e58 100644
--- a/src/shared/test-utils/mocks/pets-mocks.ts
+++ b/src/shared/test-utils/mocks/pets-mocks.ts
@@ -13,7 +13,7 @@ export const petMock: PetSchema = {
export const petResponseMock: Pet = {
id: "d8906906-5136-4ce5-825a-73ee95a267a1",
name: "Rex",
- specieName: "Cachorro",
+ species: "Cachorro",
status: PetStatus.AVAILABLE,
tags: ["vacinado", "treinado"],
}