diff --git a/src/components/dashboard/looking-after-card.tsx b/src/components/dashboard/looking-after-card.tsx
index df251ef40..96e003658 100644
--- a/src/components/dashboard/looking-after-card.tsx
+++ b/src/components/dashboard/looking-after-card.tsx
@@ -104,10 +104,10 @@ export function LookingAfterCard() {
{accountLabel(entry)}
- {levelLabel(presentation, t)}
+ {levelLabel(entry, presentation, t)}
- {recordKindLabel(presentation, t)}
+ {recordKindLabel(entry, t)}
{scopeLabel(entry, t)}
@@ -141,10 +141,11 @@ export function LookingAfterCard() {
* clothes.
*/
function levelLabel(
+ entry: AccountAccessEntry,
presentation: RecordPresentation,
t: (key: string) => string,
): string {
- if (presentation.access === "manage") {
+ if (entry.level === "manage") {
return t("recordSharing.row.canManage");
}
return presentation.access === "view-and-add"
@@ -153,10 +154,10 @@ function levelLabel(
}
function recordKindLabel(
- presentation: RecordPresentation,
+ entry: AccountAccessEntry,
t: (key: string) => string,
): string {
- return presentation.recordKind === "managed"
+ return entry.recordKind === "managed"
? t("recordSharing.lookingAfter.kindManaged")
: t("recordSharing.lookingAfter.kindShared");
}