diff --git a/apps/open-spark/pages/adminDashboard.tsx b/apps/open-spark/pages/adminDashboard.tsx index 57237212..6f963660 100644 --- a/apps/open-spark/pages/adminDashboard.tsx +++ b/apps/open-spark/pages/adminDashboard.tsx @@ -284,6 +284,7 @@ const LockDemand = () => { isLoading={isLoading} handleClick={handleOnLockDemand} sx={{ margin: '1rem 0' }} + disabled={items.length === 0} /> diff --git a/apps/open-spark/pages/dashboard.tsx b/apps/open-spark/pages/dashboard.tsx index 8a42a1b4..34ffd4d3 100644 --- a/apps/open-spark/pages/dashboard.tsx +++ b/apps/open-spark/pages/dashboard.tsx @@ -122,8 +122,7 @@ const Dashboard = () => { }) const result = response.data - - const lastTrade = result[result.length - 1] + const lastTrade = result[0] const mappedTrade: TradeData = { id: lastTrade.id,