diff --git a/_dev/src/ts/types/apiTypes.ts b/_dev/src/ts/types/apiTypes.ts index 3ea0adf41..81cb1bc77 100644 --- a/_dev/src/ts/types/apiTypes.ts +++ b/_dev/src/ts/types/apiTypes.ts @@ -8,7 +8,7 @@ interface ApiResponseHydration { } interface ApiResponseNextRoute { - kind: 'next'; + kind: 'next_route'; next_route: string; } diff --git a/_dev/tests/api/RequestHandler.test.ts b/_dev/tests/api/RequestHandler.test.ts index 2adbfb641..6a3551fb0 100644 --- a/_dev/tests/api/RequestHandler.test.ts +++ b/_dev/tests/api/RequestHandler.test.ts @@ -24,7 +24,7 @@ describe('RequestHandler', () => { }); it('should handle response with next_route and make two API calls', async () => { - const response: ApiResponse = { kind: 'next', next_route: 'next_route' }; + const response: ApiResponse = { kind: 'next_route', next_route: 'next_route' }; (baseApi.post as jest.Mock).mockResolvedValueOnce({ data: response }); const formData = new FormData();