File tree 2 files changed +4
-0
lines changed
packages/ui/src/components/widgets
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ const SwapWidget: FC<SwapWidgetProps> = ({
127
127
< SwapWidgetRenderer
128
128
context = "Swap"
129
129
transactionModalOpen = { transactionModalOpen }
130
+ depositAddressModalOpen = { depositAddressModalOpen }
130
131
defaultAmount = { defaultAmount }
131
132
defaultToAddress = { defaultToAddress }
132
133
defaultTradeType = { defaultTradeType }
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export type TradeType = 'EXACT_INPUT' | 'EXPECTED_OUTPUT'
41
41
42
42
type SwapWidgetRendererProps = {
43
43
transactionModalOpen : boolean
44
+ depositAddressModalOpen : boolean
44
45
children : ( props : ChildrenProps ) => ReactNode
45
46
defaultFromToken ?: Token
46
47
defaultToToken ?: Token
@@ -136,6 +137,7 @@ export type ChildrenProps = {
136
137
137
138
const SwapWidgetRenderer : FC < SwapWidgetRendererProps > = ( {
138
139
transactionModalOpen,
140
+ depositAddressModalOpen,
139
141
defaultFromToken,
140
142
defaultToToken,
141
143
defaultToAddress,
@@ -482,6 +484,7 @@ const SwapWidgetRenderer: FC<SwapWidgetRendererProps> = ({
482
484
enabled : quoteFetchingEnabled ,
483
485
refetchInterval :
484
486
! transactionModalOpen &&
487
+ ! depositAddressModalOpen &&
485
488
debouncedInputAmountValue === amountInputValue &&
486
489
debouncedOutputAmountValue === amountOutputValue
487
490
? 12000
You can’t perform that action at this time.
0 commit comments