diff --git a/src/lib/teact/teactn.tsx b/src/lib/teact/teactn.tsx index 84492b800..58088b4be 100644 --- a/src/lib/teact/teactn.tsx +++ b/src/lib/teact/teactn.tsx @@ -266,9 +266,10 @@ export function withUntypedGlobal( containers.set(id, container); } - if (!container.mappedProps || ( - !arePropsShallowEqual(container.ownProps, props) && activateContainer(container, currentGlobal, props) - )) { + if ( + (!container.mappedProps || !arePropsShallowEqual(container.ownProps, props)) + && activateContainer(container, currentGlobal, props) + ) { try { container.mappedProps = mapStateToProps(currentGlobal, props); } catch (err: any) {