From 7823a0de881f793c820a6ef7ce060c1bcaa6c1a2 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Fri, 5 Mar 2021 23:42:25 -0500 Subject: [PATCH] landscape: fix favicons for flattened contacts --- pkg/interface/src/views/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/views/App.js b/pkg/interface/src/views/App.js index b23ade294..77b89f042 100644 --- a/pkg/interface/src/views/App.js +++ b/pkg/interface/src/views/App.js @@ -119,8 +119,8 @@ class App extends React.Component { faviconString() { let background = '#ffffff'; - if (this.state.contacts.hasOwnProperty('/~/default')) { - background = `#${uxToHex(this.state.contacts['/~/default'][window.ship].color)}`; + if (this.state.contacts.hasOwnProperty(`~${window.ship}`)) { + background = `#${uxToHex(this.state.contacts[`~${window.ship}`].color)}`; } const foreground = foregroundFromBackground(background); const svg = sigiljs({