Skip to content

Commit 4f21e90

Browse files
committed
storybook fix
1 parent 143e9d5 commit 4f21e90

File tree

1 file changed

+4
-0
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/AccountAbstractionAnalytics

1 file changed

+4
-0
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/AccountAbstractionAnalytics/storyUtils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ export function createUserOpStatsStub(days: number): UserOpStats[] {
99
const successful = Math.random() * 100;
1010
const failed = Math.random() * 100;
1111
const sponsoredUsd = Math.random() * 100;
12+
const gasUnits = Math.random() * 1000000; // Random gas units between 0-1M
13+
const avgGasPrice = Math.random() * 100000000000; // Random gas price in wei (0-100 Gwei)
1214

1315
stubbedData.push({
1416
chainId: Math.floor(Math.random() * 100).toString(),
1517
date: new Date(2024, 11, d).toLocaleString(),
1618
failed,
1719
sponsoredUsd,
1820
successful,
21+
gasUnits,
22+
avgGasPrice,
1923
});
2024

2125
if (Math.random() > 0.7) {

0 commit comments

Comments
 (0)