Fix encryption button on jar set

This commit is contained in:
Thoronium
2023-02-26 15:01:16 -07:00
committed by GitHub
parent 7c53669fc4
commit b1b18c75a1

View File

@@ -152,9 +152,7 @@ export default class Options extends React.Component<IProps, IState> {
// Update encryption button when setting new jar
this.setState({
encryption: await translate(
(await server.encryptionEnabled(folderPath + '/config.json')) ? 'options.enabled' : 'options.disabled'
),
encryption: encEnabled,
})
}