From 63bea15f58969940e43e5832a9313b3c774fb9af Mon Sep 17 00:00:00 2001 From: Isaac Visintainer Date: Tue, 4 Feb 2020 12:59:49 -0800 Subject: [PATCH] fixed wrong name for ship --- pkg/interface/publish/src/js/components/lib/new-post.js | 4 ++-- pkg/interface/publish/src/js/components/root.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/interface/publish/src/js/components/lib/new-post.js b/pkg/interface/publish/src/js/components/lib/new-post.js index 5ac5fe6bf..22d4275bd 100644 --- a/pkg/interface/publish/src/js/components/lib/new-post.js +++ b/pkg/interface/publish/src/js/components/lib/new-post.js @@ -22,7 +22,7 @@ export class NewPost extends Component { postSubmit() { let newNote = { "new-note": { - who: this.props.host.slice(1), + who: this.props.ship.slice(1), book: this.props.book, note: stringToSymbol(this.state.title), title: this.state.title, @@ -45,7 +45,7 @@ export class NewPost extends Component { let notebook = this.props.notebooks[this.props.ship][this.props.book]; if (notebook.notes[this.state.awaiting]) { let redirect = - `/~publish/note/${this.props.host}/${this.props.book}/${this.state.awaiting}`; + `/~publish/note/${this.props.ship}/${this.props.book}/${this.state.awaiting}`; this.props.history.push(redirect); } } diff --git a/pkg/interface/publish/src/js/components/root.js b/pkg/interface/publish/src/js/components/root.js index 9fd2c9f42..0cfca1084 100644 --- a/pkg/interface/publish/src/js/components/root.js +++ b/pkg/interface/publish/src/js/components/root.js @@ -88,7 +88,7 @@ export class Root extends Component { notebooks={state.notebooks}>