Skip to content

Commit c8d7653

Browse files
authored
Merge pull request #123 from josmo/fix-react-meteor-data
Fix for the UI component calling the createContainer and assigning it…
2 parents 8e3c933 + 8105e86 commit c8d7653

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

imports/ui/components/LoginForm.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,10 +1024,12 @@ LoginForm.defaultProps = {
10241024

10251025
Accounts.ui.LoginForm = LoginForm;
10261026

1027-
export default withTracker(() => {
1027+
const LoginFormContainer = withTracker(() => {
10281028
// Listen for the user to login/logout and the services list to the user.
10291029
Meteor.subscribe('servicesList');
10301030
return ({
10311031
user: Accounts.user(),
10321032
});
1033-
})(LoginForm);
1033+
}, LoginForm);
1034+
Accounts.ui.LoginForm = LoginFormContainer;
1035+
export default LoginFormContainer

0 commit comments

Comments
 (0)