diff --git a/src/server/services/wpi/api-service.ts b/src/server/services/wpi/api-service.ts index 5cb9aec889..19efeeee28 100644 --- a/src/server/services/wpi/api-service.ts +++ b/src/server/services/wpi/api-service.ts @@ -152,13 +152,13 @@ export async function fetchStadspas( .map((requestProcess) => addLink(requestProcess)); }; - // Only request aanvragen when toggle is active let aanvragenRequest: | Promise> | Promise> = Promise.resolve( apiSuccessResult([]) ); + // Only request aanvragen when toggle is active if (FeatureToggle.stadspasRequestsActive) { aanvragenRequest = fetchRequestProcess( requestID,