mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 08:34:25 +03:00
Merge pull request #2297 from pkova/os1-rc
chat: fix station string format
This commit is contained in:
commit
bf789b987c
@ -44,7 +44,10 @@ export class ChatScreen extends Component {
|
|||||||
componentDidUpdate(prevProps, prevState) {
|
componentDidUpdate(prevProps, prevState) {
|
||||||
const { props, state } = this;
|
const { props, state } = this;
|
||||||
|
|
||||||
const station = `/${props.match.params.ship}/${props.match.params.station}`
|
const station =
|
||||||
|
props.match.params[1] === undefined ?
|
||||||
|
`/${props.match.params.ship}/${props.match.params.station}` :
|
||||||
|
`/${props.match.params[1]}/${props.match.params.ship}/${props.match.params.station}`;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
prevProps.match.params.station !== props.match.params.station ||
|
prevProps.match.params.station !== props.match.params.station ||
|
||||||
|
Loading…
Reference in New Issue
Block a user