Profile: Fix color migration (#6274)
This commit is contained in:
parent
b162650bb6
commit
cb6b92f64e
@ -190,5 +190,5 @@ export function selectSettingsScreen<T extends GlobalState>(
|
||||
export function selectPeerProfileColor<T extends GlobalState>(global: T, peer: ApiPeer | CustomPeer) {
|
||||
const key = 'isCustomPeer' in peer ? peer.peerColorId : peer.profileColor?.color;
|
||||
if (!key) return undefined;
|
||||
return global.peerColors?.profile[key];
|
||||
return global.peerColors?.profile?.[key];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user