Skip to content

Commit

Permalink
fix: if 0 photos on openbeta, fix grammar to say '0 Photos on OpenBeta'
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonlunn committed Sep 14, 2024
1 parent 11b4038 commit 179dc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/hooks/seo/useUserProfileSeo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface SeoTagsHookProps {
export const useUserProfileSeo = ({ username = '', fullName = '', imageList = [] }: SeoTagsHookProps): SeoHookType => {
const author = `/u/${username}`
const count = imageList?.length ?? 0
const photoCountStr = `${count === 0 ? '' : count} Photo${count > 1 ? 's' : ''}`
const photoCountStr = `${count} Photo${count !== 1 ? 's' : ''}`
const pageTitle = `${fullName ?? ''} (${author}) • ${photoCountStr} on OpenBeta`
const pageImages = count > 0 ? getRandomPreviewImages(imageList) : []
return { author, pageTitle, pageImages }
Expand Down

0 comments on commit 179dc5f

Please sign in to comment.