Commit 0f772cd9 authored by Muhammadali's avatar Muhammadali

update

parent e065a4c1
{
"name": "boxdialer",
"version": "2.1.6",
"version": "2.1.7",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -14,7 +14,6 @@ const ControlRenderBX = () => {
const intervalFunc = () => {
setData(window.alovoice_wsphone);
if (Boolean(data?.number)) {
console.log('interval', window.alovoice_wsphone);
clearInterval(intervalFetchToBx);
intervalFetchToBx = null;
}
......@@ -23,6 +22,9 @@ const ControlRenderBX = () => {
const testFunc = (e) => {
console.log('dsadasdsd', e);
setData(e);
setTimeout(() => {
setData({});
}, 3000);
};
console.log('check_data', data);
// switch (typeEnvironments) {
......@@ -33,11 +35,7 @@ const ControlRenderBX = () => {
// default:
// return <Root setData={setData} data={data} />;
// }
return (
<div>
<Root setData={testFunc} data={data} />
</div>
);
return <div>{data?.number && <Root setData={testFunc} data={data} />}</div>;
};
export default ControlRenderBX;
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