Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion apps/dashboard/src/@/api/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function createSupportTicket(params: {
try {
const siwaUrl = process.env.NEXT_PUBLIC_SIWA_URL;
if (siwaUrl) {
await fetch(`${siwaUrl}/v1/chat/feedback`, {
const res = await fetch(`${siwaUrl}/v1/chat/feedback`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -73,6 +73,12 @@ export async function createSupportTicket(params: {
feedbackRating: ESCALATION_FEEDBACK_RATING,
}),
});

if (!res.ok) {
// Log error but don't fail the ticket creation
const errorMessage = await res.text();
console.error("Failed to escalate to SIWA feedback:", errorMessage);
}
}
} catch (error) {
// Log error but don't fail the ticket creation
Expand Down
Loading