Show tooltip when no password is present

This commit is contained in:
Jannis Mattheis 2018-04-03 19:14:43 +02:00 committed by Jannis Mattheis
parent b5a224c9ae
commit 53aec56ca5
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export default class SettingsDialog extends Component {
</DialogContent>
<DialogActions>
<Button onClick={fClose}>Cancel</Button>
<Tooltip title={pass.length === 0 ? '' : 'pass is required'}>
<Tooltip title={pass.length !== 0 ? '' : 'pass is required'}>
<div>
<Button disabled={pass.length === 0} onClick={submitAndClose} color="primary"
variant="raised">