Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit c0822da

Browse files
Remove explicit instantiation of customReactionName variable and add types
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
1 parent 4df35a5 commit c0822da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/views/messages/ReactionsRowButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default class ReactionsRowButton extends React.PureComponent<IProps, ISta
107107

108108
const room = this.context.getRoom(mxEvent.getRoomId());
109109
let label: string | undefined;
110-
let customReactionName = "";
110+
let customReactionName: string | undefined;
111111
if (room) {
112112
const senders: string[] = [];
113113
for (const reactionEvent of reactionEvents) {

src/components/views/messages/ReactionsRowButtonTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class ReactionsRowButtonTooltip extends React.PureComponent<IProp
4343
let tooltipLabel: JSX.Element | undefined;
4444
if (room) {
4545
const senders: string[] = [];
46-
let customReactionName = "";
46+
let customReactionName: string | undefined;
4747
for (const reactionEvent of reactionEvents) {
4848
const member = room.getMember(reactionEvent.getSender()!);
4949
const name = member?.name ?? reactionEvent.getSender()!;

0 commit comments

Comments
 (0)