Skip to content

Commit

Permalink
Fix change settings (#25)
Browse files Browse the repository at this point in the history
* Fix change settigns

* reset basics

* fix number change

* remove console
  • Loading branch information
DavidGOrtega authored Nov 30, 2023
1 parent 7600329 commit 80ce545
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/008/src/components/Phone/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,8 @@ class Phone extends React.Component {
});
};

const onNumberChangeHandler = ([number = {}]) =>
this.context.setSettings({ number_out: number.value });
const onNumberChangeHandler = number_out =>
this.context.setSettings({ number_out });

const contactClickHandler = contact =>
this.emit({ type: 'contact:click', data: { contact } });
Expand Down
3 changes: 2 additions & 1 deletion packages/008/src/screens/SettingsScreen.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ export const SettingsScreen = () => {
password,
login,

setSettings,
showSettings,
toggleShowSettings,
settingsTab = 'user',
Expand All @@ -337,7 +338,7 @@ export const SettingsScreen = () => {
}, [settingsUri, nickname, password]);

const onChangeSettingsHandler = input => {
login(input);
setSettings(input);
};

const onChangeConnectionHandler = input => {
Expand Down

0 comments on commit 80ce545

Please sign in to comment.