Skip to content

Commit

Permalink
Merge branch 'develop' into fixit/disallow-clicking-disabled-wallet-b…
Browse files Browse the repository at this point in the history
…utton
  • Loading branch information
ConnorBryan authored Nov 16, 2018
2 parents b63026c + 14eb6d8 commit 916db77
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/components/AddressField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const AddressField: React.SFC<Props> = ({
showLabelMatch={showLabelMatch}
showIdenticon={showIdenticon}
onChangeOverride={onChangeOverride}
value={(value || '').trim()}
value={value}
dropdownThreshold={dropdownThreshold}
withProps={({ currentTo, isValid, isLabelEntry, onChange, onFocus, onBlur, readOnly }) => (
<div className="input-group-wrapper">
Expand Down
2 changes: 1 addition & 1 deletion common/components/ui/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props extends ReactSelectProps {

export default class Dropdown extends React.Component<Props> {
public state = {
selectedOption: '',
selectedOption: this.props.value || '',
hasBlurred: false
};

Expand Down
8 changes: 4 additions & 4 deletions common/containers/Tabs/Swap/components/CurrencySwap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ export default class CurrencySwap extends PureComponent<Props, State> {
const { origin, destination } = this.state;
const { initSwap } = this.props;

const newOrigin = { ...origin, label: newOption.label, value: newOption.value, amount: 0 };
const newOrigin = { ...origin, label: newOption.label, value: newOption.value, amount: NaN };
const newDest = {
label: newOption.label === destination.label ? origin.label : destination.label,
value: newOption.value === destination.value ? origin.value : destination.value,
amount: 0,
amount: NaN,
status: '',
image: ''
};
Expand All @@ -286,10 +286,10 @@ export default class CurrencySwap extends PureComponent<Props, State> {

const newOrigin = {
...origin,
amount: 0
amount: NaN
};

const newDest = { ...destination, label: newOption.label, value: newOption.value, amount: 0 };
const newDest = { ...destination, label: newOption.label, value: newOption.value, amount: NaN };
this.setState({
origin: newOrigin,
destination: newDest
Expand Down

0 comments on commit 916db77

Please sign in to comment.