Skip to content

Commit

Permalink
Finx de groupDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
iyanfdezz committed Apr 16, 2024
1 parent 2817c8f commit cc2b32d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/pages/Social/GroupDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const GroupDetails = () => {
throw new Error("Network response was not ok");
}
const data = await response.json();
setGroup(data);
setGroup(data.group);
setError(null);
} catch (error) {
setError(error);
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/pages/Social/GroupDetails.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ afterEach(() => {
});

const groupData = {
group : {
name: 'exampleGroup',
members: ['user1', 'user2'],
createdAt: '2024-04-11T12:00:00Z',
}
};

const mockNavigate = jest.fn();
Expand Down

0 comments on commit cc2b32d

Please sign in to comment.