Skip to content

Commit

Permalink
Initialize recentCallOnNumber if inputField.value is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
satyam-seth committed Oct 20, 2023
1 parent 60f3352 commit cf498f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ts/pages/dialpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export default class Dialpad {
this.inputField.value = this.recentCallOnNumber;
this.inputField.focus();
this.keypad.enableBackspaceButton();
} else {
}
// if value is not empty (or add check for valid phone number)
else if (this.inputField.value !== '') {
// update last call on number
this.recentCallOnNumber = this.inputField.value;

Expand Down

0 comments on commit cf498f2

Please sign in to comment.