Skip to content

Commit e42d736

Browse files
update comment
Co-authored-by: Alexey Romanov <[email protected]>
1 parent 5c969e8 commit e42d736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node_package/src/serverRenderReactComponent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ const serverRenderReactComponent: typeof serverRenderReactComponentInternal = (o
175175
} finally {
176176
// Reset console history after each render.
177177
// See `RubyEmbeddedJavaScript.console_polyfill` for initialization.
178-
// We don't need to clear the console history if the result is a promise
179-
// Promises only supported in node renderer and node renderer takes care of cleanining console history
178+
// We don't need to clear the console history if the result is a promise.
179+
// Promises are only supported in the node renderer and it takes care of cleaning console history.
180180
if (typeof result === 'string') {
181181
console.history = [];
182182
}

0 commit comments

Comments
 (0)