fix onboarding error

This commit is contained in:
m
2026-08-25 17:50:21 +02:00
parent 4602f1da79
commit 70adedeed2
+7 -2
View File
@@ -1,4 +1,4 @@
import React, { useState, useCallback } from 'react'; import React, { useState, useCallback, useEffect } from 'react';
import { import {
View, View,
Text, Text,
@@ -108,8 +108,13 @@ export function OnboardingScreen() {
complete(); complete();
}, [complete]); }, [complete]);
useEffect(() => {
if (!step) {
complete();
}
}, [step, complete]);
if (!step) { if (!step) {
complete();
return null; return null;
} }