Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Jul 28, 2023
1 parent 4cd785a commit 74c86a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Transfer/Source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function Source() {
const error = useSelector(selectTransferSourceError);
const isSourceComplete = useSelector(selectTransferIsSourceComplete);
const shouldLockFields = useSelector(selectTransferShouldLockFields);
const { isReady, statusMessage } = useIsWalletReady(sourceChain);
const { isReady, statusMessage, walletAddress } = useIsWalletReady(sourceChain);
const isTransferLimited = useIsTransferLimited();
const handleMigrationClick = useCallback(() => {
if (sourceChain === CHAIN_ID_ETH) {
Expand Down Expand Up @@ -226,7 +226,7 @@ function Source() {
</div>
</div>
<KeyAndBalance chainId={sourceChain} />
{isReady || uiAmountString ? (
{((isReady || uiAmountString) && !!walletAddress) ? (
<div className={classes.transferField}>
<TokenSelector disabled={shouldLockFields} />
</div>
Expand All @@ -250,7 +250,7 @@ function Source() {
sourceChain={sourceChain}
sourceAsset={parsedTokenAccount?.mintKey}
/>
{hasParsedTokenAccount ? (
{(hasParsedTokenAccount && !!walletAddress) ? (
<NumberTextField
variant="outlined"
label="Amount"
Expand Down

0 comments on commit 74c86a5

Please sign in to comment.