fix: use actual event duration mins for templated event names (#21263)
* fix: use actual event duration mins for templated names * fix: use actual event duration mins for templated event name * fix: use actual event duration for calendar links * fix: use actual event duration for round robin reassignment * chore: rm console logs * fix: use actual event duration for emails and rr reassignment * chore: remove unnecessary dayjs calls --------- Co-authored-by: Tushar Bhatt <[email protected]>
This commit is contained in:
1 parent
c2b091aa67
commit
85b9782264
6 files changed
+8
-6
No files matched your search
@@ -236,6 +236,7 @@ export default function Success(props: PageProps) {
|
||||
if (eventType.isDynamic && bookingInfo.responses?.title) {
|
||||
evtName = bookingInfo.responses.title as string;
|
||||
}
|
||||
|
||||
const eventNameObject = {
|
||||
attendeeName: bookingInfo.responses.name as z.infer<typeof nameObjectSchema> | string,
|
||||
eventType: eventType.title,
|
||||
@@ -243,7 +244,7 @@ export default function Success(props: PageProps) {
|
||||
host: props.profile.name || "Nameless",
|
||||
location: location,
|
||||
bookingFields: bookingInfo.responses,
|
||||
eventDuration: eventType.length,
|
||||
eventDuration: dayjs(bookingInfo.endTime).diff(bookingInfo.startTime, "minutes"),
|
||||
t,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user