Skip to content

Commit

Permalink
Make species.class.name + enclosure generic strings
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Mar 8, 2025
1 parent 5fcd7a1 commit b0d986a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useAmbassadors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ const apiAmbassadorSchema = ambassadorSchema.extend({
title: z.string(),
}),
class: z.object({
name: speciesSchema.shape.class,
name: z.string(),
title: z.string(),
}),
}),
enclosure: z.string(),
});

type Ambassador = z.infer<typeof apiAmbassadorSchema>;
Expand Down

0 comments on commit b0d986a

Please sign in to comment.