fix onboarding error
This commit is contained in:
@@ -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) {
|
if (!step) {
|
||||||
complete();
|
complete();
|
||||||
|
}
|
||||||
|
}, [step, complete]);
|
||||||
|
|
||||||
|
if (!step) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user