Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Commit

Permalink
Connect to the only number automatically
Browse files Browse the repository at this point in the history
 Before, it was trying to connect to the active number.
if it wasn't available, it was trying to register with udefined.
  • Loading branch information
renefs committed Oct 28, 2019
1 parent 0daa6b8 commit 9e867d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/core
2 changes: 1 addition & 1 deletion src/calls/components/NumberConnector/NumberConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function NumberConnector({

getUserPhoneNumbers().then(() => {
if (numberOfMobileNumbers === 1) {
connect(activeNumber);
connect(firstNumberAvailable);
}
});
}, [
Expand Down

0 comments on commit 9e867d6

Please sign in to comment.