Skip to content

Commit

Permalink
correcting minimum password code
Browse files Browse the repository at this point in the history
  • Loading branch information
glo11372 committed Sep 2, 2024
1 parent 89f7a71 commit 8fa5972
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ export const useCreateAccount = props => {
nextFetchPolicy: 'cache-first'
});

const { minimum_password_length } = storeConfigData
? storeConfigData.storeConfig
: null;
const minimum_password_length = useMemo(() => {
if (storeConfigData) {
return storeConfigData.storeConfig.minimum_password_length;
}
}, [storeConfigData]);

const fetchUserDetails = useAwaitQuery(getCustomerQuery);
const fetchCartDetails = useAwaitQuery(getCartDetailsQuery);
Expand Down

0 comments on commit 8fa5972

Please sign in to comment.