Minor: use clearTimeout instead of clearInterval in <Message>

This commit is contained in:
Evan Hahn 2020-12-14 13:46:55 -06:00 committed by Josh Perez
parent 116ff74be8
commit 0c99604585

View file

@ -370,7 +370,7 @@ export class Message extends React.PureComponent<Props, State> {
public componentWillUnmount(): void {
if (this.selectedTimeout) {
clearInterval(this.selectedTimeout);
clearTimeout(this.selectedTimeout);
}
if (this.expirationCheckInterval) {
clearInterval(this.expirationCheckInterval);