You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return`We apologize, but there was an error submitting your ${ticketType}: ${submissionResult.error}\n\nPlease try again or contact our support team directly.`;
// Handle null/undefined submission result as an error
81
+
if(!submissionResult){
82
+
return`We apologize, but there was an error submitting your ${ticketType}.\n\nPlease try again or contact our support team directly.`;
83
+
}
84
+
85
+
// Handle explicit failure
86
+
if(!submissionResult.success){
87
+
return`We apologize, but there was an error submitting your ${ticketType}: ${submissionResult.error||'Unknown error'}\n\nPlease try again or contact our support team directly.`;
return`Your ${ticketType} has been submitted successfully.\n\nTicket: <a href="${submissionResult.ticketUrl}" target="_blank">${submissionResult.ticketKey}</a>\n\nOur support team will review your request and respond accordingly. Thank you for contacting ACCESS.`;
return`Your ${ticketType} has been submitted successfully.\n\nOur support team will review your request and respond accordingly. Thank you for contacting ACCESS.`;
86
-
}else{
87
-
return`Your ${ticketType} has been submitted successfully.\n\nOur support team will review your request and respond accordingly. Thank you for contacting ACCESS.`;
88
93
}
94
+
95
+
// Handle success without ticket URL (but this might indicate a partial failure)
96
+
return`Your ${ticketType} has been submitted successfully.\n\nOur support team will review your request and respond accordingly. Thank you for contacting ACCESS.`;
0 commit comments