File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export async function createSupportTicket(params: {
61
61
try {
62
62
const siwaUrl = process . env . NEXT_PUBLIC_SIWA_URL ;
63
63
if ( siwaUrl ) {
64
- await fetch ( `${ siwaUrl } /v1/chat/feedback` , {
64
+ const res = await fetch ( `${ siwaUrl } /v1/chat/feedback` , {
65
65
method : "POST" ,
66
66
headers : {
67
67
"Content-Type" : "application/json" ,
@@ -73,6 +73,12 @@ export async function createSupportTicket(params: {
73
73
feedbackRating : ESCALATION_FEEDBACK_RATING ,
74
74
} ) ,
75
75
} ) ;
76
+
77
+ if ( ! res . ok ) {
78
+ // Log error but don't fail the ticket creation
79
+ const errorMessage = await res . text ( ) ;
80
+ console . error ( "Failed to escalate to SIWA feedback:" , errorMessage ) ;
81
+ }
76
82
}
77
83
} catch ( error ) {
78
84
// Log error but don't fail the ticket creation
You can’t perform that action at this time.
0 commit comments