From 903bd9e13be6f35d497266b9cf749d43cd838c23 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 18:03:45 +0000 Subject: [PATCH] Autogenerate config update --- client/msw-handlers.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/msw-handlers.ts b/client/msw-handlers.ts index 045a860..00529b3 100644 --- a/client/msw-handlers.ts +++ b/client/msw-handlers.ts @@ -34,12 +34,9 @@ type StatusCode = number; */ export function json( body: B, - options: { status?: number; delay?: number } = {} + options: { status?: number } = {} ): StrictResponse { - const { status = 200, delay = 0 } = options; - if (delay) { - doDelay(delay); - } + const { status = 200 } = options; return HttpResponse.json(body, { status }); }