Skip to content

Commit a0a1758

Browse files
pablopalaciosunverbraucht
authored andcommitted
Use elementType instead of element
Co-authored-by: Kevin Read <me@kevin-read.com> Co-authored-by: Pablo Palacios <pablo.palacios@holidaycheck.com>
1 parent 68fe402 commit a0a1758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReactShallowRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ See https://fb.me/react-invalid-hook-call for tips about how to debug and fix th
515515

516516
this._rendering = true;
517517
this._element = element;
518-
this._context = element.contextType
518+
this._context = elementType.contextType
519519
? context
520520
: getMaskedContext(elementType.contextTypes, context);
521521

0 commit comments

Comments
 (0)