onBlur={handleBlur}
onChange={handleChange}
type="number"
- value={values.adlib || 1}
+ value={Object.prototype.hasOwnProperty.call(values, 'adlib')
+ ? values.adlib : 50}
/>
</Form.Group>
</Row>
});
},
mapPropsToValues: ({ channel }) => ({
- adlib: channel.chat_settings.adlib || 50,
+ adlib: Object.prototype.hasOwnProperty.call(channel.chat_settings, 'adlib')
+ ? channel.chat_settings.adlib : 50,
language: channel.chat_settings.language || channel.languages[0] || 'de',
min_age: channel.chat_settings.min_age || 1,
respond: channel.chat_settings.respond || 'yes',