contacts-js: fix case where default contact can be removed

This commit is contained in:
Logan Allen 2020-02-12 14:09:04 -08:00
parent 33f7d62186
commit fb0ef50f43
3 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -480,9 +480,11 @@ export class ContactCard extends Component {
let localOpt =
((props.ship === window.ship) && (props.path === "/~/default"))
? "dib" : "dn";
let adminOpt =
(props.path.includes(window.ship) || (props.ship === window.ship))
? "dib" : "dn";
( (props.path.includes(window.ship) || (props.ship === window.ship)) &&
!(props.path.includes('/~/default'))
) ? "dib" : "dn";
let card = state.edit ? this.renderEditCard() : this.renderCard();