Skip to content

Commit

Permalink
Add condition so no double separator in chat menus
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jul 23, 2024
1 parent 7b337c1 commit 1c13489
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/chats/ChatItem/ChatItemMenus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,12 @@ export default function ChatItemMenus({
}

if (isAuthorized) {
menus.push({
isSeparator: true,
text: '',
})
if (menus.length > 0) {
menus.push({
isSeparator: true,
text: '',
})
}
if (!loadingSocialProfile && !isVerifiedUser) {
menus.push({
text: 'Approve User',
Expand Down

0 comments on commit 1c13489

Please sign in to comment.