chat: remove "#" from fallback sigil color

In the chat input we fall back to #000000 and blend it; but we also
prefix any color we send to the sigil component with a # for
uxToHex values, so we end up passing ##000000. This results
in simplified sigils -- when in doubt, ensure the hex formatting
is correct...
This commit is contained in:
Matilde Park 2020-03-13 22:51:20 -04:00
parent 74fec3a76e
commit eff3c85973

View File

@ -200,7 +200,7 @@ export class ChatInput extends Component {
readOnlyRender() {
const { props } = this;
let color = !!props.ownerContact
? uxToHex(props.ownerContact.color) : '#000000';
? uxToHex(props.ownerContact.color) : '000000';
let sigilClass = !!props.ownerContact
? "" : "mix-blend-diff";
@ -230,7 +230,7 @@ export class ChatInput extends Component {
const { props, state } = this;
let color = !!props.ownerContact
? uxToHex(props.ownerContact.color) : '#000000';
? uxToHex(props.ownerContact.color) : '000000';
let sigilClass = !!props.ownerContact
? "" : "mix-blend-diff";