Skip to content

Commit

Permalink
fix: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mishramonalisha76 committed Oct 10, 2023
1 parent 226087b commit cb8f5fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ export const CreateGroupModal: React.FC<CreateGroupModalProps> = ({

const [groupInputDetails, setGroupInputDetails] =
useState<GroupInputDetailsType>({
groupName: 'Push Group Chat',
groupDescription: 'This is the oficial group for Push Protocol',
groupImage: ProfilePicture,
groupName: '',
groupDescription: '',
groupImage: '',
});

const renderComponent = () => {
Expand Down Expand Up @@ -216,10 +216,10 @@ const CreateGroupDetail = ({
}

// verify description
if (!groupImage) {
showError("Group image can't be empty");
return;
}
// if (!groupImage) {
// showError("Group image can't be empty");
// return;
// }
}

if (handleNext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { GrouInfoType as GroupInfoType } from '../types';

import { ACCESS_TYPE_TITLE } from '../constants';
import { IChatTheme } from '../exportedTypes';
import { ProfilePicture } from '../../../config';

const GROUP_TYPE_OPTIONS: Array<OptionDescription> = [
{
Expand Down Expand Up @@ -161,7 +162,7 @@ export const CreateGroupType = ({
const groupInfo:GroupInfoType = {
groupName:groupInputDetails.groupName,
groupDescription:groupInputDetails.groupDescription,
groupImage:groupInputDetails.groupImage,
groupImage:groupInputDetails.groupImage || ProfilePicture,
isPublic: getEncryptionType(),
};
const rules: any = checked ? criteriaStateManager.generateRule() : {};
Expand Down

0 comments on commit cb8f5fc

Please sign in to comment.