Fix eslint error

This commit is contained in:
Yuya Ochiai 2017-02-15 23:12:04 +09:00
parent f2e26ec276
commit ce455d2b0c

View file

@ -7,16 +7,16 @@ function AutoSaveIndicator(props) {
<Alert
className='AutoSaveIndicator'
{...rest}
bsStyle={props.savingState === 'error' ? 'danger' : 'info'}
bsStyle={savingState === 'error' ? 'danger' : 'info'}
>
{(() => {
switch (props.savingState) {
switch (savingState) {
case 'saving':
return 'Saving...';
case 'saved':
return 'Saved!';
case 'error':
return props.errorMessage;
return errorMessage;
default:
return '';
}