Skip to content

Commit

Permalink
fix onshore max calculation (courtesy of neac) (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: borgvin <borgvin@havenprotocol.org>
  • Loading branch information
borgvin and borgvin authored May 13, 2024
1 parent 085b263 commit cccdecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/shared/pages/_wallet/exchange/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ class Exchange extends Component<ExchangeProps, ExchangeState> {
switch (txType) {

case TxType.Shore:
stateUpdate = fromTicker === Ticker.XHV ? {fromAmount: amount} : {toAmount: amount};
setToAmount = fromTicker === Ticker.XHV ? true : false;
stateUpdate = {fromAmount: amount};
setToAmount = true;
break;
case TxType.Xasset:
stateUpdate = fromTicker === Ticker.xUSD ? {fromAmount: amount} : {toAmount: amount};
Expand Down

0 comments on commit cccdecf

Please sign in to comment.