diff --git a/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentFormContainer.tsx b/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentFormContainer.tsx index d8be0237c..8897f6b72 100644 --- a/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentFormContainer.tsx +++ b/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentFormContainer.tsx @@ -1,5 +1,5 @@ import { CoralRTE } from "@coralproject/rte"; -import { setLongTimeout } from "long-settimeout"; +import { clearLongTimeout, setLongTimeout } from "long-settimeout"; import React, { Component } from "react"; import { graphql } from "react-relay"; @@ -93,7 +93,7 @@ export class EditCommentFormContainer extends Component { } public componentWillUnmount() { - clearTimeout(this.expiredTimer); + clearLongTimeout(this.expiredTimer); } private updateWhenExpired() {