fixed wrong name for ship

This commit is contained in:
Isaac Visintainer 2020-02-04 12:59:49 -08:00
parent 9b260e081d
commit 63bea15f58
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -88,7 +88,7 @@ export class Root extends Component {
notebooks={state.notebooks}>
<NewPost
notebooks={state.notebooks}
host={ship}
ship={ship}
book={notebook}
{...props}
/>