Skip to content

Commit

Permalink
Merge pull request #310 from keyboardio/navigate/welcome-screen-fix
Browse files Browse the repository at this point in the history
App.js: Fix onKeyboardConnect()'s navigate targets
  • Loading branch information
obra committed Feb 8, 2019
2 parents 592ba42 + b6c0d47 commit de53c20
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class App extends React.Component {
}
});
await navigate(
commands.includes("keymap.custom") > 0 ? "./layout-editor" : "./welcome"
commands.includes("keymap.custom") > 0 ? "/layout-editor" : "/welcome"
);
};

Expand Down
2 changes: 0 additions & 2 deletions src/renderer/screens/KeyboardSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import Hardware from "@chrysalis-api/hardware";
import usb from "usb";

import i18n from "../i18n";
import { navigate } from "../routerHistory";

const styles = theme => ({
loader: {
Expand Down Expand Up @@ -216,7 +215,6 @@ class KeyboardSelect extends React.Component {

try {
await this.props.onConnect(devices[this.state.selectedPortIndex]);
await navigate("/layout-editor");
} catch (err) {
this.setState({
opening: false
Expand Down

0 comments on commit de53c20

Please sign in to comment.