Skip to content

Commit

Permalink
Fix service sheet title
Browse files Browse the repository at this point in the history
  • Loading branch information
Perronef5 committed Oct 8, 2024
1 parent 831b3fd commit fd62f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/ServiceSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const ServiceSheet = ({ children }: ServiceSheetProps) => {

setCurrentService('')
bottomSheetRef.current?.close()
}, [])
}, [bottomSheetRef, currentService])

return (
<ReAnimatedBox entering={FadeInSlow} flex={1} style={{ paddingTop: top }}>
Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit fd62f7c

Please sign in to comment.