diff --git a/frontend/app/cartridges/selectedCartridgeProvider.tsx b/frontend/app/cartridges/selectedCartridgeProvider.tsx index 745e5ef..a0fa88e 100644 --- a/frontend/app/cartridges/selectedCartridgeProvider.tsx +++ b/frontend/app/cartridges/selectedCartridgeProvider.tsx @@ -43,7 +43,7 @@ export function SelectedCartridgeProvider({ children }:{ children: React.ReactNo const changeCartridge = (cartridge:Cartridge) => { if (selectedCartridge?.downloading) return; // change only if download already finished - const aux = {...cartridge, play:false, downloading:false, cartridgeData:undefined, inCard:undefined, + let aux = {...cartridge, play:false, downloading:false, cartridgeData:undefined, inCard:undefined, args:undefined, scoreFunction:undefined, replay:undefined, gameplayLog:undefined, outcard:undefined, outhash:undefined, initCanvas:selectedCartridge?.initCanvas}; diff --git a/frontend/app/components/CartridgeInfo.tsx b/frontend/app/components/CartridgeInfo.tsx index 565d4be..fb649e0 100644 --- a/frontend/app/components/CartridgeInfo.tsx +++ b/frontend/app/components/CartridgeInfo.tsx @@ -27,7 +27,6 @@ import CartridgeDescription from './CartridgeDescription'; import Link from 'next/link'; import CartridgeScoreboard from './CartridgeScoreboard'; import { envClient } from "../utils/clientEnv"; -import { delay } from "../utils/util"; import ErrorIcon from '@mui/icons-material/Error'; import CloseIcon from "@mui/icons-material/Close"; import { sha256 } from "js-sha256"; @@ -69,72 +68,6 @@ function logFeedback(logStatus:LOG_STATUS, setLogStatus:Function) { } -function scoreboardFallback() { - const arr = Array.from(Array(3).keys()); - - return ( -
- User - | -- Timestamp - | -- Score - | -- Status - | -- - | -
---|---|---|---|---|
-
- 0xf39F...2266
-
- |
-
-
-
- 31/12/1969, 21:06:36 PM
-
- |
-
-
-
- 100
-
- |
-
-
- 100
-
- |
-
-
- 100
-
- |
-
+ User + | ++ Timestamp + | ++ Score + | ++ Status + | ++ + | +
---|---|---|---|---|
+
+ 0xf39F...2266
+
+ |
+
+
+
+ 31/12/1969, 21:06:36 PM
+
+ |
+
+
+
+ 100
+
+ |
+
+
+ 100
+
+ |
+
+
+ 100
+
+ |
+