Commit 2021c99d authored by Muhammadali's avatar Muhammadali

up[date

parent f5cddc74
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.1.8", "version": "2.1.9",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -13,8 +13,10 @@ const ControlRenderBX = () => { ...@@ -13,8 +13,10 @@ const ControlRenderBX = () => {
}, []); }, []);
const intervalFunc = () => { const intervalFunc = () => {
if (Boolean(data?.number)) { if (!Boolean(data?.number)) {
setData(window.alovoice_wsphone); setData(window.alovoice_wsphone);
}
if (Boolean(data?.number)) {
clearInterval(intervalFetchToBx); clearInterval(intervalFetchToBx);
intervalFetchToBx = null; intervalFetchToBx = null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment