From 80dbb3bd6930ef56909afbcc87dfef6210c4a74f Mon Sep 17 00:00:00 2001 From: David Edler Date: Fri, 15 Mar 2024 18:26:32 +0100 Subject: [PATCH] fix(code) verious code style fixes Signed-off-by: David Edler --- src/context/instanceLoading.tsx | 2 +- src/pages/profiles/ProfileDetailPanelContent.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/instanceLoading.tsx b/src/context/instanceLoading.tsx index 429ef9b873..463bb1b529 100644 --- a/src/context/instanceLoading.tsx +++ b/src/context/instanceLoading.tsx @@ -53,6 +53,6 @@ export const InstanceLoadingProvider: FC = ({ children }) => { ); }; -export function useInstanceLoading() { +export function useInstanceLoading(): InstanceLoadingType { return useContext(InstanceLoadingContext); } diff --git a/src/pages/profiles/ProfileDetailPanelContent.tsx b/src/pages/profiles/ProfileDetailPanelContent.tsx index 6ba45e4a3b..2bf1f2bf4f 100644 --- a/src/pages/profiles/ProfileDetailPanelContent.tsx +++ b/src/pages/profiles/ProfileDetailPanelContent.tsx @@ -18,7 +18,7 @@ const ProfileDetailPanelContent: FC = ({ profile, project }) => { const usageCount = getProfileInstances( project.name, isDefaultProject, - profile?.used_by, + profile.used_by, ).length; const featuresProfiles = isProjectWithProfiles(project);