diff --git a/docs/essential/life-cycle.md b/docs/essential/life-cycle.md index 9d8b49bd..636c226b 100644 --- a/docs/essential/life-cycle.md +++ b/docs/essential/life-cycle.md @@ -707,7 +707,7 @@ const encoder = new TextEncoder() new Elysia() .mapResponse(({ responseValue, set }) => { - const isJson = typeof response === 'object' + const isJson = typeof responseValue === 'object' const text = isJson ? JSON.stringify(responseValue)