Update telephone page: Update delete function for managers table
Deploy Frontend / build-and-deploy (push) Successful in 37s Details

This commit is contained in:
romanskijdev 2026-10-27 23:18:01 +03:00
parent f7272b6232
commit ea02e8b019
1 changed files with 6 additions and 1 deletions

View File

@ -283,7 +283,12 @@ function AddWhatsappModal({ opened, onClose }: { opened: boolean, onClose: () =>
useEffect(() => {
if (opened && !qrData) fetchQr()
if (!opened) stopPolling()
if (!opened) {
stopPolling()
setQrData(null)
}
return stopPolling
}, [opened])