Skip to content

Commit

Permalink
feat(invite) last lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelbadawi committed Jul 30, 2024
1 parent 9d2bceb commit c313139
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react/features/base/avatar/components/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class Avatar<P extends IProps> extends PureComponent<P, IState> {
*/
static defaultProps = {
defaultIcon: IconUser,
dynamicColor: true,
dynamicColor: true
};

/**
Expand Down
9 changes: 8 additions & 1 deletion react/features/invite/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,15 @@ export function invitePeopleAndChatRooms(
'Content-Type': 'application/json'
};

const queryParams = params.toString();
let inviteEndpoint = inviteServiceUrl;

if (queryParams.length > 0) {
inviteEndpoint += `?${queryParams}`;
}

return fetch(
`${inviteServiceUrl}?${params.toString()}`,
inviteEndpoint,
{
body: JSON.stringify({
'invited': inviteItems,
Expand Down

0 comments on commit c313139

Please sign in to comment.