Skip to content

Commit

Permalink
fix: resolve build issue on main
Browse files Browse the repository at this point in the history
  • Loading branch information
greatertomi committed Dec 9, 2024
1 parent a30e6e4 commit 28a0449
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const EnterPassword: VFC<EnterPasswordProps> = ({
const icon = mapOfWalletTypeIconProperties[kind];

const next = () => {
onGenerateKeys(password.value);
onGenerateKeys(password?.value || '');
clearSecrets();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ export const WalletSetupPasswordStep = ({
const passwordConfirmationErrorMessage =
passHasBeenValidated && password !== passwordConfirmation ? translations.noMatchPassword : '';
const isNextEnabled = Boolean(
passHasBeenValidated &&
!passwordConfirmationErrorMessage &&
score >= minimumPassLevelRequired &&
password.value.length > 0
passHasBeenValidated && !passwordConfirmationErrorMessage && score >= minimumPassLevelRequired && !!password.value
);

const complexityBarList: BarStates = useMemo(() => getComplexityBarStateList(score), [score]);
Expand All @@ -79,7 +76,7 @@ export const WalletSetupPasswordStep = ({
description={translations.description}
onBack={onBack}
onNext={() => {
onNext({ password: password.value });
onNext({ password: password.value || '' });
}}
isNextEnabled={isNextEnabled}
currentTimelineStep={WalletTimelineSteps.WALLET_SETUP}
Expand Down

0 comments on commit 28a0449

Please sign in to comment.