Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
myxmaster committed May 17, 2024
1 parent 07ece02 commit 3bd4d6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views/Settings/NodeConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ export default class NodeConfiguration extends React.Component<

const activeNodeIndex = settings.selectedNode || 0;
if (index === activeNodeIndex) {
// updating active node
if (originalNode != null) {
const diff = differenceBy(
Object.entries(originalNode),
Expand All @@ -450,6 +451,7 @@ export default class NodeConfiguration extends React.Component<
entry[0] !== 'nickname' && entry[0] !== 'photo'
);
if (diff.length === 0) {
// only nickname or photo was edited - no reconnect necessary
navigation.goBack();
return;
}
Expand Down

0 comments on commit 3bd4d6f

Please sign in to comment.