Skip to content

Commit

Permalink
fix(swap): limit input
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Oct 19, 2023
1 parent 3ca9fdd commit 04a8399
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const SwapFormProvider = ({
actions.limitPriceInputValueChanged(
Quantities.format(orderData.limitPrice ?? Quantities.zero, denomination, PRECISION),
)
} else {
} else if (orderData.type === 'market') {
actions.limitPriceInputValueChanged(
Quantities.format(orderData.selectedPoolCalculation?.prices.market ?? Quantities.zero, denomination, PRECISION),
)
Expand Down Expand Up @@ -277,6 +277,7 @@ const swapFormReducer = (state: SwapFormState, action: SwapFormAction) => {
break

case SwapFormActionType.LimitPriceInputValueChanged:
console.log(SwapFormActionType.LimitPriceInputValueChanged, action.value)
draft.limitPrice.displayValue = action.value

break
Expand Down

0 comments on commit 04a8399

Please sign in to comment.