diff --git a/src/helpers/proxies.ts b/src/helpers/proxies.ts index 1a107e5..d6993d5 100644 --- a/src/helpers/proxies.ts +++ b/src/helpers/proxies.ts @@ -18,7 +18,9 @@ export const handlerBtnClickWithAnimate = async ( } el.classList.add(className) - await cb() + try { + await cb() + } catch {} el.classList.remove(className) }