diff --git a/components/Positions.tsx b/components/Positions.tsx index 0051f29..1e17aaf 100644 --- a/components/Positions.tsx +++ b/components/Positions.tsx @@ -93,7 +93,7 @@ const Positions = ({
{positions.length ? ( positions.map((position, i) => { - const {stakeBalance, borrowBalance, bank } = position + const { stakeBalance, borrowBalance, bank } = position return bank ? (

Earned

- {balance ? `X.XX ${formatTokenSymbol(bank.name)}` : `0 ${formatTokenSymbol(bank.name)}`} + {stakeBalance + ? `X.XX ${formatTokenSymbol(bank.name)}` + : `0 ${formatTokenSymbol(bank.name)}`}
diff --git a/components/TopBar.tsx b/components/TopBar.tsx index 497af47..49e17cf 100644 --- a/components/TopBar.tsx +++ b/components/TopBar.tsx @@ -28,7 +28,7 @@ const TopBar = () => {
logo @@ -46,7 +46,7 @@ const TopBar = () => {
{!isOnline ? (
- +

Your connection appears to be offline

@@ -58,9 +58,15 @@ const TopBar = () => { export default TopBar -const NavLink = ( - { active, path, text }: { active: boolean; path: string; text: string }, -) => { +const NavLink = ({ + active, + path, + text, +}: { + active: boolean + path: string + text: string +}) => { return (