If no location is set, default to Cal Video (#5812)

* Default to Cal Video

* Show web conferencing details to follow on success page

* Show web conferencing details to follow on success page

* Show web conferencing details to follow on success page

* Type fixes

* Pass tests

Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
Joe Au-YeungandAlex van Andel authored and GitHub committed 2022-12-01 10:20:01 -05:00
1 parent 056406bdd9
commit 5e88ad50ea
5 files changed
+18 -4

No files matched your search

+4 -2
View File
@@ -167,9 +167,11 @@ export default function Success(props: SuccessProps) {
if ((isCancellationMode || changes) && typeof window !== "undefined") {
window.scrollTo(0, document.body.scrollHeight);
}
const location: ReturnType<typeof getEventLocationValue> = Array.isArray(props.bookingInfo.location)
? props.bookingInfo.location[0] || ""
: props.bookingInfo.location || "";
? props.bookingInfo.location[0]
: // If there is no location set then we default to Cal Video
"integrations:daily";
if (!location) {
// Can't use logger.error because it throws error on client. stdout isn't available to it.