show better toast when 'disconnected' is pressed

pull/399/head
gabrielburnworth 2017-08-13 20:28:13 -07:00
parent c776a62a2f
commit 9e1dc628a2
1 changed files with 9 additions and 1 deletions

View File

@ -122,7 +122,15 @@ export function sync(): Thunk {
dispatch(setSyncStatus("sync_error"));
});
} else {
badVersion();
if (getState()
.bot
.hardware
.informational_settings
.controller_version) {
badVersion();
} else {
info("FarmBot is not connected.", "Disconnected", "red");
}
}
};
}