diff --git a/taker-frontend/src/App.tsx b/taker-frontend/src/App.tsx index 72789a3..466864c 100644 --- a/taker-frontend/src/App.tsx +++ b/taker-frontend/src/App.tsx @@ -167,6 +167,7 @@ export const App = () => { }; calculateMargin(payload); }} + canSubmit={order != null && !isCreatingNewOrderRequest} onLongSubmit={makeNewOrderRequest} isSubmitting={isCreatingNewOrderRequest} /> diff --git a/taker-frontend/src/components/Trade.tsx b/taker-frontend/src/components/Trade.tsx index 9293d56..fe87939 100644 --- a/taker-frontend/src/components/Trade.tsx +++ b/taker-frontend/src/components/Trade.tsx @@ -55,6 +55,7 @@ interface TradeProps { leverage?: number; quantity: string; liquidationPrice?: number; + canSubmit: boolean; isSubmitting: boolean; onQuantityChange: any; onLongSubmit: (payload: CfdOrderRequestPayload) => void; @@ -71,6 +72,7 @@ const Trade = ( margin: marginAsNumber, leverage, liquidationPrice: liquidationPriceAsNumber, + canSubmit, onLongSubmit, order_id, }: TradeProps, @@ -148,14 +150,18 @@ const Trade = (
- + -