mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +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 =
|
let localOpt =
|
||||||
((props.ship === window.ship) && (props.path === "/~/default"))
|
((props.ship === window.ship) && (props.path === "/~/default"))
|
||||||
? "dib" : "dn";
|
? "dib" : "dn";
|
||||||
|
|
||||||
let adminOpt =
|
let adminOpt =
|
||||||
(props.path.includes(window.ship) || (props.ship === window.ship))
|
( (props.path.includes(window.ship) || (props.ship === window.ship)) &&
|
||||||
? "dib" : "dn";
|
!(props.path.includes('/~/default'))
|
||||||
|
) ? "dib" : "dn";
|
||||||
|
|
||||||
let card = state.edit ? this.renderEditCard() : this.renderCard();
|
let card = state.edit ? this.renderEditCard() : this.renderCard();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user