Change function name

This commit is contained in:
Diego Mello 2020-04-27 10:05:18 -03:00
parent 850df6ce76
commit de9788d0ae
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ class ScreenLockConfigView extends React.Component {
} }
} }
autoLock = () => { toggleAutoLock = () => {
this.setState(({ autoLock }) => ({ autoLock: !autoLock }), () => { this.setState(({ autoLock }) => ({ autoLock: !autoLock }), () => {
this.save(); this.save();
this.setPasscode(); this.setPasscode();
@ -176,7 +176,7 @@ class ScreenLockConfigView extends React.Component {
<Switch <Switch
value={autoLock} value={autoLock}
trackColor={SWITCH_TRACK_COLOR} trackColor={SWITCH_TRACK_COLOR}
onValueChange={this.autoLock} onValueChange={this.toggleAutoLock}
/> />
); );
} }