Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Don't use ordinals for position display

Blue Mousee3730be67b40
diff --git a/web/app/pages/Project/tabs/SEO/SEOView.tsx b/web/app/pages/Project/tabs/SEO/SEOView.tsx
index 5b492ef0a..17ab90890 100644
--- a/web/app/pages/Project/tabs/SEO/SEOView.tsx
+++ b/web/app/pages/Project/tabs/SEO/SEOView.tsx
@@ -393,14 +393,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {
const seoGscRowTooltip = useCallback(
(entry: any) => {
const pos = entry.position ?? 0
- const posOrdinal =
- pos === 1
- ? `\u{1F947} 1st`
- : pos === 2
- ? `2nd`
- : pos === 3
- ? `3rd`
- : `${pos}th`
+ const posDisplay = Number(pos).toFixed(1)
return (
<ul className='m-0 max-h-[250px] list-none overflow-y-auto p-0 md:max-h-[350px]'>
@@ -435,7 +428,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {
colour='primary'
className='font-mono whitespace-nowrap tabular-nums md:text-sm'
>
- {posOrdinal}
+ {posDisplay}
</Text>
</li>
<li className='flex items-center justify-between py-px leading-snug'>