EditProfile: Fix error about uncontrolled components

This commit is contained in:
Alex Gleason 2020-05-28 15:29:32 -05:00
parent c4c99a1c1b
commit e6cff0f83f
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -36,7 +36,7 @@ const mapStateToProps = state => {
// Forces fields to be MAX_SIZE, filling empty values
const normalizeFields = fields => (
ImmutableList(fields).setSize(MAX_FIELDS).map(field =>
field ? field : ImmutableMap({ name: undefined, value: undefined })
field ? field : ImmutableMap({ name: '', value: '' })
)
);