Skip to content

Commit 5d00b7c

Browse files
authored
fix(PoolTable): relabel footer total to 'Total (visible rows)' (#420)
1 parent 9b9c879 commit 5d00b7c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/PoolTable.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe("PoolTable", () => {
7474
// XLM(300) + USDC(100) + EURC(200) = 600; anchors 2+5+1 = 8
7575
const tfoot = document.querySelector("tfoot");
7676
expect(tfoot).toBeInTheDocument();
77-
expect(tfoot).toHaveTextContent("Total");
77+
expect(tfoot).toHaveTextContent("Total (visible rows)");
7878
expect(tfoot).toHaveTextContent("600");
7979
expect(tfoot).toHaveTextContent("8 anchors");
8080
});

src/components/PoolTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function PoolTable({ pools }: { pools: Pool[] }) {
7575
</tbody>
7676
<tfoot>
7777
<tr className="border-t border-zinc-700">
78-
<td className="py-2 text-zinc-400 font-medium">Total</td>
78+
<td className="py-2 text-zinc-400 font-medium">Total (visible rows)</td>
7979
<td className="py-2 text-zinc-200 font-medium">
8080
{formatAmount(pools.reduce((sum, p) => sum + p.total, 0))}
8181
</td>

0 commit comments

Comments
 (0)