We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b96ec85 commit a3fe2cbCopy full SHA for a3fe2cb
src/app.tsx
@@ -142,7 +142,7 @@ function AppContent() {
142
const [shareURL, setShareURL] = useState('');
143
const [tutorialDone, setTutorialDone] = useState(localStorage.getItem('amaranth-playground.tutorialDone') !== null);
144
useEffect(() => tutorialDone ? localStorage.setItem('amaranth-playground.tutorialDone', '') : void 0, [tutorialDone]);
145
- const [activeTab, setActiveTab] = useState(tutorialDone ? 'amaranth-source' : 'tutorial');
+ const [activeTab, setActiveTab] = useState((query || tutorialDone) ? 'amaranth-source' : 'tutorial');
146
const [amaranthSource, setAmaranthSource] = useState<string>(
147
query?.s
148
?? localStorage.getItem('amaranth-playground.source')
0 commit comments