Commit d4621ebd authored by Muhammadali's avatar Muhammadali

update

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