Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iRaySpace committed Feb 1, 2019
1 parent edfb355 commit 4319f6e
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/container/SettingsContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,24 +604,26 @@ export default class SettingsContainer extends React.Component {
syncData(url, {
username: user_name,
password: password,
}).then(res => {
if (res.uptodate) {
})
.then(res => {
if (res.uptodate) {
Toast.show({
text: "Already up-to-date",
buttonText: "Okay",
});
} else {
if (res.items) {
this.props.itemStore.addBulk(res.items);
}
}
})
.catch(err => {
Toast.show({
text: "Already up-to-date",
type: "danger",
text: err.toString(),
buttonText: "Okay",
});
} else {
if (res.items) {
this.props.itemStore.addBulk(res.items);
}
}
}).catch(err => {
Toast.show({
type: "danger",
text: err.toString(),
buttonText: "Okay",
});
});
}

onSyncSave() {
Expand Down

0 comments on commit 4319f6e

Please sign in to comment.