Skip to content

Commit

Permalink
fix: allow empty special description
Browse files Browse the repository at this point in the history
  • Loading branch information
cirex-web committed Feb 3, 2025
1 parent dbb0c8f commit b5d0fdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/joiLocationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ITimeSlotJoiSchema = Joi.object({
});
const ISpecialJoiSchema = Joi.object({
title: string.required(),
description: string,
description: string.allow(''),
});

// Note: Keys without .required() are optional by default
Expand Down
2 changes: 1 addition & 1 deletion src/types/locationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type ITimeSlots = ReadonlyArray<ITimeSlot>;

interface ISpecial {
title: string;
description?: string;
description: string;
}

// Ordered by priority - affects how tiles are displayed in the grid (first to last)
Expand Down

0 comments on commit b5d0fdd

Please sign in to comment.