Commit 5fffbeb7 authored by Muhammadali's avatar Muhammadali

update-

parent 0882a419
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.9.8", "version": "2.9.9",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -81,11 +81,14 @@ const ModalPhoneNumpad = ({ ...@@ -81,11 +81,14 @@ const ModalPhoneNumpad = ({
(type === 'up' && numberSelectHistory < call_history.length) || (type === 'up' && numberSelectHistory < call_history.length) ||
numberSelectHistory === 'zero' numberSelectHistory === 'zero'
) { ) {
console.log('numberSelectHistory: ', numberSelectHistory);
setNumberSelectHistory( setNumberSelectHistory(
numberSelectHistory !== 'zero' ? numberSelectHistory + 1 : 0 + 1, numberSelectHistory !== 'zero' ? numberSelectHistory + 1 : 0 + 1,
); );
} }
if (type === 'down' && numberSelectHistory > 0) { if (type === 'down' && numberSelectHistory > 0) {
console.log('numberSelectHistory: ', numberSelectHistory);
setNumberSelectHistory( setNumberSelectHistory(
numberSelectHistory !== 'zero' ? numberSelectHistory - 1 : 0 - 1, numberSelectHistory !== 'zero' ? numberSelectHistory - 1 : 0 - 1,
); );
...@@ -102,7 +105,6 @@ const ModalPhoneNumpad = ({ ...@@ -102,7 +105,6 @@ const ModalPhoneNumpad = ({
selectedNumber = call_history.slice(numberSelectHistory * -1)[0] selectedNumber = call_history.slice(numberSelectHistory * -1)[0]
? call_history.slice(numberSelectHistory * -1)[0] ? call_history.slice(numberSelectHistory * -1)[0]
: false; : false;
console.log('call_history: ', call_history);
if (numberSelectHistory === 0) { if (numberSelectHistory === 0) {
selectedNumber = ''; selectedNumber = '';
......
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