From fd62f7ca53fd9113ee5bff450be4b601c7d022a4 Mon Sep 17 00:00:00 2001 From: Luis Perrone Date: Mon, 7 Oct 2024 22:42:57 -0500 Subject: [PATCH] Fix service sheet title --- src/services/ServiceSheet.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/ServiceSheet.tsx b/src/services/ServiceSheet.tsx index d2a218af3..1872b3413 100644 --- a/src/services/ServiceSheet.tsx +++ b/src/services/ServiceSheet.tsx @@ -74,7 +74,7 @@ const ServiceSheet = ({ children }: ServiceSheetProps) => { setCurrentService('') bottomSheetRef.current?.close() - }, []) + }, [bottomSheetRef, currentService]) return ( @@ -124,7 +124,7 @@ const Header = ({ const wallet = useCurrentWallet() const titleAsWord = useMemo(() => { - if (!title) return '' + if (!title || title === '') return '' return title?.charAt(0).toUpperCase() + title?.slice(1) }, [title])