fix: greeting options hot reload, unsplash collection setting text missing

This commit is contained in:
David Ralph
2024-05-18 11:39:05 +01:00
parent 1e8db6c73c
commit f4c1506107
3 changed files with 18 additions and 9 deletions

View File

@@ -20,6 +20,10 @@ class Switch extends PureComponent {
checked: value,
});
if (this.props.onChange) {
this.props.onChange(value);
}
variables.stats.postEvent(
'setting',
`${this.props.name} ${this.state.checked === true ? 'enabled' : 'disabled'}`,