diff --git a/assets/js/components/detailSidebar.tsx b/assets/js/components/detailSidebar.tsx index 400a9f6a..51a78f7c 100644 --- a/assets/js/components/detailSidebar.tsx +++ b/assets/js/components/detailSidebar.tsx @@ -149,6 +149,10 @@ function EventInfo(props: { if (!props.eventStore.rsvp_url) return e.preventDefault() let response = await postData(props.eventStore.rsvp_url) + if (response.redirected) { + window.location.href = response.url + return + } if (response.ok) { props.refetchEvent() setShowAttendingPopup(true) @@ -157,9 +161,6 @@ function EventInfo(props: { if (response.status >= 400) { setError((await response.json())["error"]) } - if (response.redirected) { - window.location.href = response.url - } } async function handleGiveUp(e: Event) { setShowAttendingPopup(false) diff --git a/totem/static/js/app.min.js b/totem/static/js/app.min.js index 4231dcc4..32856b8c 100644 --- a/totem/static/js/app.min.js +++ b/totem/static/js/app.min.js @@ -13,7 +13,7 @@ endDate="${r1()}" startTime="${o1()}" endTime="${l1()}" - timeZone="UTC">`;return(()=>{var h1=Bh();return h1.innerHTML=s1,h1})()}var j7=Th;var Vh=B1("");function $0(t1,e1){let o1=$1(t1.a,e1),[n1,r1]=Q6(o1,["src"]),[l1,a1]=F1(""),i1=q1(()=>e1.title?`${t1.c}${e1.title}`:t1.c);return Y1(()=>a1(i1())),M2(()=>{a1("")}),(()=>{var c1=Vh();return P4(c1,$1({get stroke(){return t1.a?.stroke},get color(){return e1.color||"currentColor"},get fill(){return e1.color||"currentColor"},get style(){return{...e1.style,overflow:"visible"}}},r1,{get height(){return e1.size||"1em"},get width(){return e1.size||"1em"},xmlns:"http://www.w3.org/2000/svg",get innerHTML(){return l1()}}),!0,!0),C1(c1,()=>j2&&$n(i1())),c1})()}function S7(t1){return $0({a:{viewBox:"0 0 1024 1024"},c:''},t1)}function y7(t1){return $0({a:{viewBox:"0 0 1024 1024"},c:''},t1)}function L7(t1){return $0({a:{viewBox:"0 0 576 512"},c:''},t1)}function F7(t1){return $0({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},t1)}function A7(t1){return $0({a:{xmlns:"http://www.w3.org/2000/svg",class:"icon icon-tabler icon-tabler-armchair",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},c:''},t1)}var O7=20;function Go(t1){return t1.size===void 0&&(t1.size=O7),v1(e0,{get children(){return[v1(t2,{get when(){return t1.name==="star"},get children(){return v1(L7,{get size(){return t1.size}})}}),v1(t2,{get when(){return t1.name==="dollar"},get children(){return v1(y7,{get size(){return t1.size}})}}),v1(t2,{get when(){return t1.name==="recur"},get children(){return v1(F7,{get size(){return t1.size}})}}),v1(t2,{get when(){return t1.name==="clock"},get children(){return v1(S7,{get size(){return t1.size}})}}),v1(t2,{get when(){return t1.name==="chair"},get children(){return v1(A7,{get size(){return t1.size}})}})]}})}Go.tagName="t-icon";Go.propsDefault={size:O7};var D7=Go;var jh=B1('

You're going!`),Fh=B1("

We'll send you a notification before the session starts with a link to join."),Ah=B1("

Totem is better with friends! Share this link with your friends and they'll be able to join as well."),Oh=B1("

In the meantime, review our Community Guidelines to learn more about how to participate."),Dh=B1('