1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-18 01:50:50 +00:00

docs: minor comments so I won't lose my mind in 3 months

This commit is contained in:
Ash Keel 2023-01-27 15:36:25 +01:00
parent c09074a211
commit 3cfcb326fc
No known key found for this signature in database
GPG key ID: BAD8D93E7314ED3E
2 changed files with 3 additions and 0 deletions

View file

@ -202,6 +202,7 @@ export default function App(): JSX.Element {
};
}, []);
// Wait for main process to give us the OK to hit kilovolt
useEffect(() => {
void IsServerReady().then(setReady);
EventsOn('ready', (newValue: boolean) => {
@ -212,6 +213,7 @@ export default function App(): JSX.Element {
};
}, []);
// Connect to kilovolt as soon as it's available
useEffect(() => {
if (!ready) {
return;

View file

@ -601,6 +601,7 @@ export default function OnboardingPage() {
const currentStep = steps[uiConfig?.onboardingStatus || 0];
const landing = currentStep === OnboardingSteps.Landing;
// Skip onboarding if we've already done it
const onboardingDone = uiConfig?.onboardingDone;
useEffect(() => {
if (onboardingDone) {