mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 08:34:25 +03:00
contacts-js: fix case where default contact can be removed
This commit is contained in:
parent
33f7d62186
commit
fb0ef50f43
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user