Compare commits
2 Commits
48a45b5447
...
a60d500b76
| Author | SHA1 | Date | |
|---|---|---|---|
| a60d500b76 | |||
| 7f6e33242c |
@@ -54,13 +54,7 @@ export default function Playground() {
|
||||
}
|
||||
return 14;
|
||||
});
|
||||
const [bulkRounds, setBulkRounds] = useState(() => {
|
||||
if (typeof window !== "undefined") {
|
||||
const saved = localStorage.getItem("playground-bulkRounds");
|
||||
return saved ? parseInt(saved, 10) : 1000;
|
||||
}
|
||||
return 1000;
|
||||
});
|
||||
const [bulkRounds, setBulkRounds] = useState(1000);
|
||||
const [selectedAgent, setSelectedAgent] = useState(() => {
|
||||
if (typeof window !== "undefined") {
|
||||
const saved = localStorage.getItem("playground-selectedAgent");
|
||||
@@ -147,16 +141,6 @@ export default function Playground() {
|
||||
}
|
||||
}, [fontSize]);
|
||||
|
||||
// Save bulk rounds to localStorage
|
||||
useEffect(() => {
|
||||
if (typeof window !== "undefined") {
|
||||
localStorage.setItem(
|
||||
"playground-bulkRounds",
|
||||
bulkRounds.toString()
|
||||
);
|
||||
}
|
||||
}, [bulkRounds]);
|
||||
|
||||
// Save selected agent to localStorage
|
||||
useEffect(() => {
|
||||
if (typeof window !== "undefined") {
|
||||
|
||||
Reference in New Issue
Block a user