[Fix] Fix for issue #54 (#59)

* Fix for issue #54

* Linting and Prettier
This commit is contained in:
Okechi Jones-Williams
2026-06-12 12:47:29 +01:00
committed by GitHub
parent dfd0dc98ac
commit 8b93251710
2 changed files with 11 additions and 23 deletions

View File

@@ -84,10 +84,7 @@ test.describe('when given valid input', () => {
await app.people.verifyProfileCount(totalProfiles)
})
test('show profiles with the correct education level', async ({
app,
signedInAccount,
}) => {
test('show profiles with the correct education level', async ({app, signedInAccount}) => {
await app.home.clickPeopleLink()
const totalProfiles = await app.people.profileCountLocator.textContent()
@@ -107,10 +104,7 @@ test.describe('when given valid input', () => {
await app.people.verifyProfileCount(totalProfiles)
})
test('show profiles with the correct smoking preference', async ({
app,
signedInAccount,
}) => {
test('show profiles with the correct smoking preference', async ({app, signedInAccount}) => {
await app.home.clickPeopleLink()
const totalProfiles = await app.people.profileCountLocator.textContent()
@@ -133,10 +127,7 @@ test.describe('when given valid input', () => {
await app.people.verifyProfileCount(totalProfiles)
})
test('show profiles with the correct cannabis preference', async ({
app,
signedInAccount,
}) => {
test('show profiles with the correct cannabis preference', async ({app, signedInAccount}) => {
await app.home.clickPeopleLink()
const totalProfiles = await app.people.profileCountLocator.textContent()
@@ -148,10 +139,7 @@ test.describe('when given valid input', () => {
await app.people.verifyProfileCount(totalProfiles)
})
test('show profiles with the correct political preference', async ({
app,
signedInAccount,
}) => {
test('show profiles with the correct political preference', async ({app, signedInAccount}) => {
await app.home.clickPeopleLink()
const totalProfiles = await app.people.profileCountLocator.textContent()
@@ -161,10 +149,7 @@ test.describe('when given valid input', () => {
await app.people.verifyProfileCount(totalProfiles)
})
test('show profiles with the correct religion preference', async ({
app,
signedInAccount,
}) => {
test('show profiles with the correct religion preference', async ({app, signedInAccount}) => {
await app.home.clickPeopleLink()
const totalProfiles = await app.people.profileCountLocator.textContent()

View File

@@ -27,7 +27,10 @@ import {useTextEditor} from 'web/components/widgets/editor'
import {CompassLoadingIndicator} from 'web/components/widgets/loading-indicator'
import {BannedBadge, UserAvatarAndBadge} from 'web/components/widgets/user-link'
import {useIsMobile} from 'web/hooks/use-is-mobile'
import {usePrivateMessages, useSortedPrivateMessageMemberships,} from 'web/hooks/use-private-messages'
import {
usePrivateMessages,
useSortedPrivateMessageMemberships,
} from 'web/hooks/use-private-messages'
import {useRedirectIfSignedOut} from 'web/hooks/use-redirect-if-signed-out'
import {useUser} from 'web/hooks/use-user'
import {useUsersInStore} from 'web/hooks/use-user-supabase'
@@ -272,7 +275,7 @@ export const PrivateChat = (props: {
avatars={members}
onClick={() => setShowUsers(true)}
/>
) : (
) : otherUsers === undefined ? null : (
<Avatar size="sm" username="?" noLink />
)}
{members && members.length > 0 ? (
@@ -295,7 +298,7 @@ export const PrivateChat = (props: {
.join(', ')}
{members.length > 2 && ` & ${members.length - 2} more`}
</span>
) : (
) : otherUsers === undefined ? null : (
<span className={'ml-1 italic text-ink-500 text-sm'}>
{t('messages.deleted_user', 'Deleted user')}
</span>