This commit is contained in:
Ayaz Hafiz 2023-07-31 18:20:29 -05:00
parent 8069d3ad34
commit 29a5aab56d
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 3 additions and 1 deletions

View file

@ -16,6 +16,7 @@
"build": "build:codegen && react-scripts build", "build": "build:codegen && react-scripts build",
"build:codegen": "node ./scripts/gen_schema_dts.js", "build:codegen": "node ./scripts/gen_schema_dts.js",
"check": "tsc", "check": "tsc",
"lint": "eslint src/ scripts/",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },
"eslintConfig": { "eslintConfig": {

View file

@ -31,7 +31,8 @@ export default function Ui({ events }: UiProps): JSX.Element {
engine.stepTo(engine.lastEventIndex()); engine.stepTo(engine.lastEventIndex());
const subs = engine.subsSnapshot(); const subs = engine.subsSnapshot();
const [epoch, setEpoch] = useState(subs.epoch); // _setEpoch to be used in the future!
const [epoch, _setEpoch] = useState(subs.epoch);
return ( return (
<div <div