diff --git a/widget/embedded/src/containers/Inputs/Inputs.tsx b/widget/embedded/src/containers/Inputs/Inputs.tsx index c1306453e5..34a1a53f7c 100644 --- a/widget/embedded/src/containers/Inputs/Inputs.tsx +++ b/widget/embedded/src/containers/Inputs/Inputs.tsx @@ -109,6 +109,7 @@ export function Inputs(props: PropTypes) { onSelectMaxBalance={() => { setInputAmount(tokenBalanceReal.split(',').join('')); }} + anyWalletConnected={connectedWallets.length > 0} /> diff --git a/widget/ui/src/containers/SwapInput/SwapInput.tsx b/widget/ui/src/containers/SwapInput/SwapInput.tsx index e108f47c35..b9464eb458 100644 --- a/widget/ui/src/containers/SwapInput/SwapInput.tsx +++ b/widget/ui/src/containers/SwapInput/SwapInput.tsx @@ -32,7 +32,8 @@ export function SwapInput(props: SwapInputPropTypes) { 'balance' in props && !props.loading && !props.loadingBalance && - props.token.displayName; + props.token.displayName && + props.anyWalletConnected; const showBalanceSkeleton = 'balance' in props && (props.loading || props.loadingBalance); diff --git a/widget/ui/src/containers/SwapInput/SwapInput.types.ts b/widget/ui/src/containers/SwapInput/SwapInput.types.ts index 6c587cc6e4..35edb44693 100644 --- a/widget/ui/src/containers/SwapInput/SwapInput.types.ts +++ b/widget/ui/src/containers/SwapInput/SwapInput.types.ts @@ -31,6 +31,7 @@ type FromProps = { loadingBalance: boolean; onSelectMaxBalance: () => void; onInputChange: (inputAmount: string) => void; + anyWalletConnected: boolean; }; type ToProps = {