- {!connected && (
+ {!connected ? (
{
/>
{LABELS.DASHBOARD_INFO}
- )}
- {connected && userDeposits.length === 0 && userObligations.length === 0 && (
+ ):
+ userDeposits.length === 0 && userObligations.length === 0 ?
+ (
{
/>
{LABELS.NO_LOANS_NO_DEPOSITS}
- )}
- {connected && (
+ ): (
- {userDeposits.length > 0 && (
-
-
-
- )}
- {userObligations.length > 0 && (
-
-
-
- )}
+
+ {userDeposits.length > 0 ?
+ :
+ {LABELS.NO_DEPOSITS} }
+
+
+ {userObligations.length > 0 ?
+ :
+ {LABELS.NO_LOANS} }
+
)}
diff --git a/src/views/dashboard/obligation/index.tsx b/src/views/dashboard/obligation/index.tsx
index f1320cc..3671df9 100644
--- a/src/views/dashboard/obligation/index.tsx
+++ b/src/views/dashboard/obligation/index.tsx
@@ -35,7 +35,9 @@ export const DashboardObligations = () => {