From 2787ce97bc726c224bbae290a11680eb91ca3948 Mon Sep 17 00:00:00 2001 From: bosiraphael Date: Tue, 17 Dec 2024 16:47:25 +0100 Subject: [PATCH] fix typo --- .../record-show/hooks/useRecordShowPagePagination.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts index 06324171237c..4502af09f90e 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts +++ b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts @@ -153,13 +153,13 @@ export const useRecordShowPagePagination = ( const rankInView = recordIdsInCache.findIndex((id) => id === objectRecordId); - const rankFoundInFiew = rankInView > -1; + const rankFoundInView = rankInView > -1; const objectLabel = capitalize(objectMetadataItem.labelPlural); const totalCount = Math.max(1, totalCountBefore, totalCountAfter); - const viewNameWithCount = rankFoundInFiew + const viewNameWithCount = rankFoundInView ? `${rankInView + 1} of ${totalCount} in ${objectLabel}` : `${objectLabel} (${totalCount})`;