diff --git a/src/components/account/Health/HealthBar.tsx b/src/components/account/Health/HealthBar.tsx
index 60baafba..ecb19f10 100644
--- a/src/components/account/Health/HealthBar.tsx
+++ b/src/components/account/Health/HealthBar.tsx
@@ -63,16 +63,22 @@ export default function HealthBar({
health={isUpdated ? updatedHealth : health}
healthFactor={isUpdated ? updatedHealthFactor : healthFactor}
>
- <>
+
{showIcon && (
)}
-
)
}
diff --git a/src/components/account/Health/HealthIcon.tsx b/src/components/account/Health/HealthIcon.tsx
index 858cb0bf..43891b01 100644
--- a/src/components/account/Health/HealthIcon.tsx
+++ b/src/components/account/Health/HealthIcon.tsx
@@ -5,7 +5,7 @@ import { ExclamationMarkCircled, Heart } from 'components/common/Icons'
interface Props {
isLoading: boolean
health: number
- className: string
+ className?: string
colorClass?: string
}
@@ -14,9 +14,9 @@ export default function HealthIcon(props: Props) {
const color = colorClass ?? 'text-white'
return (
- <>
+
{!isLoading && health === 0 ? (
-
+
) : (
)}
- >
+
)
}
diff --git a/src/components/common/Tooltip/index.tsx b/src/components/common/Tooltip/index.tsx
index 85a47f22..1c94c7c1 100644
--- a/src/components/common/Tooltip/index.tsx
+++ b/src/components/common/Tooltip/index.tsx
@@ -48,7 +48,7 @@ export const Tooltip = (props: Props) => {
visible={props.visible}
>
{props.children ? (
-
{
)}
>
{props.children}
-
+
) : (