Default to invite path if text not available
import React, { Component } from 'react';
-import GlobalApi from '../api/global';
import { Invite } from '../types/invite-update';
export class SidebarInvite extends Component<{invite: Invite, onAccept: Function, onDecline: Function}, {}> {
@@ -10,7 +9,7 @@ export class SidebarInvite extends Component<{invite: Invite, onAccept: Function
<div className='w-100 bg-white pa4 bb b--gray4 b--gray1-d z-5' style={{position: 'sticky', top: 0}}>
<div className='w-100 v-mid'>
<p className="dib f8 mono gray4-d">
- {props.invite.text}
+ {props.invite.text ? props.invite.text : props.invite.path}
</p>
</div>
<a
