fix onboarding error

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