Skip to content

Commit

Permalink
fix: fixed create group btn not disabling and added minimum member re…
Browse files Browse the repository at this point in the history
…quirement (#941)
  • Loading branch information
KlausMikhaelson authored Dec 20, 2023
1 parent 9f8b47e commit 9c41c8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ export const AddWalletContent = ({
<Section flex="1" alignSelf="center">
<ModalConfirmButton
onClick={() => {
// console.log(groupMembers);
onSubmit()
}}
isLoading={isLoading}
memberListCount={memberList?.length > 0}
theme={theme}
disabled={isLoading || groupMembers.length === 0}
>
{!isLoading && groupMembers ? (submitButtonTitle ? submitButtonTitle : 'Add To Group'): ''}
{isLoading && <Spinner size="30" color="#fff" />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface AddWalletsInCreateGroupProps {
}

const AddWalletsInCreateGroup = ({ handlePrevious, onClose,groupInputDetails, groupEncryptionType, checked, criteriaStateManager, groupMembers, setGroupMembers }: AddWalletsInCreateGroupProps) => {
const { createGatedGroup } = useCreateGatedGroup();
const { createGatedGroup, loading } = useCreateGatedGroup();
const groupInfoToast = useToast();
const getEncryptionType = () => {
if (groupEncryptionType === 'encrypted') {
Expand Down Expand Up @@ -85,7 +85,7 @@ const AddWalletsInCreateGroup = ({ handlePrevious, onClose,groupInputDetails, gr
memberList={groupMembers}
handleMemberList={setGroupMembers}
groupMembers={groupInputDetails.groupMembers}
isLoading={false}
isLoading={loading}
modalHeader="Add Wallets"
/>
</Section>
Expand Down

0 comments on commit 9c41c8d

Please sign in to comment.