diff --git a/client/src/App.tsx b/client/src/App.tsx
index fac1e92d..54145d94 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -132,7 +132,7 @@ const App = () => {
Array<
PendingElicitationRequest & {
resolve: (response: ElicitationResponse) => void;
- reject: (error: Error) => void;
+ decline: (error: Error) => void;
}
>
>([]);
@@ -223,7 +223,7 @@ const App = () => {
requestedSchema: request.params.requestedSchema,
},
resolve,
- reject: (error: Error) => {
+ decline: (error: Error) => {
console.error("Elicitation request rejected:", error);
},
},
diff --git a/client/src/components/ElicitationRequest.tsx b/client/src/components/ElicitationRequest.tsx
index dc3f5962..4488a962 100644
--- a/client/src/components/ElicitationRequest.tsx
+++ b/client/src/components/ElicitationRequest.tsx
@@ -100,8 +100,8 @@ const ElicitationRequest = ({
}
};
- const handleReject = () => {
- onResolve(request.id, { action: "reject" });
+ const handleDecline = () => {
+ onResolve(request.id, { action: "decline" });
};
const handleCancel = () => {
@@ -158,7 +158,7 @@ const ElicitationRequest = ({
-