From b56cfd510f977e8379decb425043f5c6f55acd24 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sun, 14 Aug 2022 20:21:27 -0500 Subject: [PATCH] Fix csv profit --- web/pages/admin.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/admin.tsx b/web/pages/admin.tsx index 7b8292b2..5fba8649 100644 --- a/web/pages/admin.tsx +++ b/web/pages/admin.tsx @@ -67,7 +67,7 @@ function UsersTable() { u.email ?? '', u.name, Math.round(u.balance).toString(), - Math.round(u.profitCached.allTime).toString(), + Math.round(profitByUser[u.id] ?? 0).toString(), ]) ) const csv = lines.map((line) => line.join(', ')).join('\n')