Skip to content

Commit

Permalink
Code review return
Browse files Browse the repository at this point in the history
  • Loading branch information
martmull committed Jun 10, 2024
1 parent 32c8e8a commit 9c7b501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const getNextOnboardingState = (
workspaceMembers: WorkspaceMember[],
) => {
if (currentOnboardingStep === OnboardingStep.SyncEmail) {
return workspaceMembers.length === 1 ? OnboardingStep.InviteTeam : null;
return workspaceMembers && workspaceMembers.length > 1
? null
: OnboardingStep.InviteTeam;
}
return null;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('sanitizeEmailList', () => {
'toto2@toto.com',
]);
});
it('should remove trim spaces', () => {
it('should trim spaces', () => {
expect(sanitizeEmailList([' toto@toto.com ', ' toto2@toto.com'])).toEqual([
'toto@toto.com',
'toto2@toto.com',
Expand Down

0 comments on commit 9c7b501

Please sign in to comment.