From 0c9960458563ef3a6e993cfafec4f7acfe30ca0c Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Mon, 14 Dec 2020 13:46:55 -0600 Subject: [PATCH] Minor: use `clearTimeout` instead of `clearInterval` in --- ts/components/conversation/Message.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/conversation/Message.tsx b/ts/components/conversation/Message.tsx index e253e8c919..8130245981 100644 --- a/ts/components/conversation/Message.tsx +++ b/ts/components/conversation/Message.tsx @@ -370,7 +370,7 @@ export class Message extends React.PureComponent { public componentWillUnmount(): void { if (this.selectedTimeout) { - clearInterval(this.selectedTimeout); + clearTimeout(this.selectedTimeout); } if (this.expirationCheckInterval) { clearInterval(this.expirationCheckInterval);