Skip to content

Commit

Permalink
fix(extension): send balance UI no longer glitches when input field l…
Browse files Browse the repository at this point in the history
…oses focus (#1535)
  • Loading branch information
AngelCastilloB authored and ljagiela committed Nov 15, 2024
1 parent 46253ef commit 912a611
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import {
useSubmitingState,
useTransactionProps,
useMetadata,
useAnalyticsSendFlowTriggerPoint,
useMaxAdaStatus
useAnalyticsSendFlowTriggerPoint
} from '../../store';
import { useHandleClose } from './Header';
import { useWalletStore } from '@src/stores';
Expand Down Expand Up @@ -89,7 +88,6 @@ export const Footer = withAddressBookContext(
const { list: addressList, utils } = useAddressBookContext();
const { updateRecord: updateAddress, deleteRecord: deleteAddress } = utils;
const handleResolver = useHandleResolver();
const { isMaxAdaLoading } = useMaxAdaStatus();
const { sharedWalletKey, getSignPolicy } = useSharedWalletData();

const isSummaryStep = currentSection.currentSection === Sections.SUMMARY;
Expand Down Expand Up @@ -418,8 +416,7 @@ export const Footer = withAddressBookContext(
}, [t, currentSection.currentSection]);

const isConfirmButtonDisabled =
(confirmDisable || isSubmitDisabled || isMaxAdaLoading) &&
currentSection.currentSection !== Sections.ADDRESS_CHANGE;
(confirmDisable || isSubmitDisabled) && currentSection.currentSection !== Sections.ADDRESS_CHANGE;

const submitHwFormStep = useCallback(() => {
triggerSubmit();
Expand Down

0 comments on commit 912a611

Please sign in to comment.