mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-19 16:08:34 +01:00
Enable tsconfig noUncheckedIndexedAccess
This commit is contained in:
@@ -168,6 +168,7 @@ export const ReactionViewer = React.forwardRef<HTMLDivElement, Props>(
|
||||
// Find the local user's reaction first, then fall back to most recent
|
||||
const localUserReaction = groupedReactions.find(r => r.from.isMe);
|
||||
const firstReaction = localUserReaction || groupedReactions[0];
|
||||
strictAssert(firstReaction, 'Missing firstReaction');
|
||||
return {
|
||||
id: firstReaction.parentKey,
|
||||
index: DEFAULT_EMOJI_ORDER.includes(firstReaction.parentKey)
|
||||
|
||||
Reference in New Issue
Block a user