Skip to content

Commit

Permalink
fix: Adding yearly title to preview page (#16441)
Browse files Browse the repository at this point in the history
* initial commit

* added year tag to the occurences field

* Revert yarn.lock

---------

Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com>
  • Loading branch information
2 people authored and zomars committed Sep 4, 2024
1 parent fcce329 commit 90bf083
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/lib/recurringStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const getRecurringFreq = ({
t: TFunction;
recurringEvent: RecurringEvent;
}): string => {
if (recurringEvent.interval && recurringEvent.freq) {
if (recurringEvent.interval && recurringEvent.freq >= 0) {
return t("every_for_freq", {
freq: `${recurringEvent.interval > 1 ? recurringEvent.interval : ""} ${t(
Frequency[recurringEvent.freq].toString().toLowerCase(),
Expand Down
2 changes: 0 additions & 2 deletions packages/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ model Host {
@@index([eventTypeId])
}



model EventType {
id Int @id @default(autoincrement())
/// @zod.min(1)
Expand Down

0 comments on commit 90bf083

Please sign in to comment.