Skip to content

Commit

Permalink
SmartUrlInput [nfc]: Stop choosing new variable names in some assignm…
Browse files Browse the repository at this point in the history
…ents.
  • Loading branch information
chrisbobbe committed Jul 27, 2021
1 parent a56b41b commit a21915a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/SmartUrlInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ export default class SmartUrlInput extends PureComponent<Props, State> {
handleChange = (value: string) => {
this.setState({ value });

const { onChangeText, defaultProtocol: protocol, defaultDomain: domain } = this.props;
onChangeText(fixRealmUrl(autocompleteRealm(value, { protocol, domain })));
const { onChangeText, defaultProtocol, defaultDomain } = this.props;
onChangeText(
fixRealmUrl(autocompleteRealm(value, { protocol: defaultProtocol, domain: defaultDomain })),
);
};

urlPress = () => {
Expand Down

0 comments on commit a21915a

Please sign in to comment.