Skip to content

Commit

Permalink
fix: display translated error messages for service submission
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredx87 committed Feb 11, 2025
1 parent 5a245c8 commit 2890f01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/service-catalog/submitServiceItemRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function submitServiceItemRequest(
value: field.value,
};
});
const response = await fetch("/api/v2/requests", {
const response = await fetch(`/api/v2/requests?locale=${baseLocale}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -43,7 +43,6 @@ export async function submitServiceItemRequest(
channel: "web form",
source: 50,
},
locale: baseLocale,
},
}),
});
Expand Down

0 comments on commit 2890f01

Please sign in to comment.