Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Clear timeout after unmounting

dominik-zeglen5c53e9ef8a2c
diff --git a/saleor/static/dashboard-next/components/ConfirmButton/ConfirmButton.tsx b/saleor/static/dashboard-next/components/ConfirmButton/ConfirmButton.tsx
index 68305d82c4..c068d890f0 100644
--- a/saleor/static/dashboard-next/components/ConfirmButton/ConfirmButton.tsx
+++ b/saleor/static/dashboard-next/components/ConfirmButton/ConfirmButton.tsx
@@ -100,6 +100,10 @@ const ConfirmButton = decorate<ConfirmButtonProps>(
}
}
+ componentWillUnmount() {
+ clearTimeout(this.timeout);
+ }
+
render() {
const {
children,