@@ -186,19 +186,19 @@ export default function TicketPage() {
186186
187187 const handleRatingChange = ( ticketId : number , rating : number ) => {
188188 setRatings ( ( prevRatings ) => {
189- const newRatings = new Map ( prevRatings ) ;
190- newRatings . set ( ticketId , rating ) ;
189+ const newRatings = new Map ( prevRatings ) ;
190+ newRatings . set ( ticketId , rating ) ;
191191 return newRatings ;
192192 } ) ;
193- } ;
193+ } ;
194194
195195 const handleReviewChange = ( ticketId : number , review : string ) => {
196196 setReviews ( ( prevReviews ) => {
197- const newReviews = new Map ( prevReviews ) ;
198- newReviews . set ( ticketId , review ) ;
197+ const newReviews = new Map ( prevReviews ) ;
198+ newReviews . set ( ticketId , review ) ;
199199 return newReviews ;
200200 } ) ;
201- } ;
201+ } ;
202202
203203 const submitRating = async ( ratedTicket : ticket ) => {
204204 if ( isSubmitting ) return ;
@@ -531,7 +531,10 @@ export default function TicketPage() {
531531 { mentorData . location == "virtual" && (
532532 < Text className = "mt-5 text-lg" >
533533 Your mentor is virtual! < br /> Please join their video call link:{ " " }
534- < a href = { mentorData . zoomlink } > { mentorData . zoomlink } </ a >
534+ < a href = { mentorData . zoomlink . startsWith ( 'http' ) ? mentorData . zoomlink : `https://${ mentorData . zoomlink } ` } >
535+ { mentorData . zoomlink }
536+ </ a >
537+
535538 </ Text >
536539 ) }
537540
@@ -572,7 +575,7 @@ export default function TicketPage() {
572575 </ Text >
573576 < Rating
574577 onChange = { ( rating ) => handleRatingChange ( ticket . id , rating ) }
575- value = { ratings . get ( ticket . id ) || 0 }
578+ value = { ratings . get ( ticket . id ) || 0 }
576579 fractions = { 2 }
577580 size = "lg"
578581 color = "yellow"
0 commit comments