Commit d4621ebd authored by Muhammadali's avatar Muhammadali

update

parent d0a24673
{
"name": "boxdialer",
"version": "1.8.7",
"version": "1.8.8",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -68,7 +68,6 @@ const ModalPhoneNumpad = ({
};
const history = ({ type }) => {
console.log('type', type);
if (phoneModal && (modalState.bool ? false : true)) {
if (
(type === 'up' && numberSelectHistory < call_history.length) ||
......@@ -109,8 +108,6 @@ const ModalPhoneNumpad = ({
}
}, [numberSelectHistory]);
console.log('numberSelectHistory', numberSelectHistory);
document.onkeydown = function (e) {
if (phoneModal && modalState.bool ? false : true) {
e = e || window.event;
......@@ -176,16 +173,16 @@ const ModalPhoneNumpad = ({
const callButton = () => {
// inset if ----------
if (Boolean(inputValue.toString().length)) {
console.log(inputValue, 'inputValue');
let newCallsStringify = JSON.stringify([...call_history, inputValue]);
localStorage.setItem('callhistory', newCallsStringify);
}
// -------------------
if (dynamicValue === 'connected') {
// let call_history = localStorage.getItem('call_history');
if (
Boolean(inputValue.toString().length) &&
call_history.slice(-1)[0] != inputValue
) {
let newCallsStringify = JSON.stringify([...call_history, inputValue]);
localStorage.setItem('callhistory', newCallsStringify);
}
boxDialer.initialized(inputValue);
} else {
toast.error('Please wait', {
......@@ -195,7 +192,6 @@ const ModalPhoneNumpad = ({
});
}
};
return (
<ModalPhoneNumpadStyle
position={position}
......
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