Profile: Fix color migration (#6274)

This commit is contained in:
zubiden 2025-09-30 16:52:15 +02:00 committed by Alexander Zinchuk
parent b162650bb6
commit cb6b92f64e

View File

@ -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];
}