diff --git a/packages/nextjs/app/dice/page.tsx b/packages/nextjs/app/dice/page.tsx index 8c72ace1..83bf6e03 100644 --- a/packages/nextjs/app/dice/page.tsx +++ b/packages/nextjs/app/dice/page.tsx @@ -47,13 +47,11 @@ const DiceGame: NextPage = () => { setIsRolling(false); setRolls( - ( - rollsHistoryData?.map(({ args }) => ({ - address: args.player as AddressType, - amount: Number(args.amount), - roll: (args.roll as bigint).toString(16).toUpperCase(), - })) || [] - ).slice(0, MAX_TABLE_ROWS), + rollsHistoryData?.map(({ args }) => ({ + address: args.player as AddressType, + amount: Number(args.amount), + roll: (args.roll as bigint).toString(16).toUpperCase(), + })) || [], ); } }, [rolls, rollsHistoryData, rollsHistoryLoading]); @@ -74,12 +72,10 @@ const DiceGame: NextPage = () => { setIsRolling(false); setWinners( - ( - winnerHistoryData?.map(({ args }) => ({ - address: args.winner as AddressType, - amount: args.amount as bigint, - })) || [] - ).slice(0, MAX_TABLE_ROWS), + winnerHistoryData?.map(({ args }) => ({ + address: args.winner as AddressType, + amount: args.amount as bigint, + })) || [], ); } }, [winnerHistoryData, winnerHistoryLoading, winners.length]); @@ -106,7 +102,7 @@ const DiceGame: NextPage = () => {