diff --git a/app/src/screens/Onboarding/LoadingScreen.tsx b/app/src/screens/Onboarding/LoadingScreen.tsx index e60c0a756..12a60d61e 100644 --- a/app/src/screens/Onboarding/LoadingScreen.tsx +++ b/app/src/screens/Onboarding/LoadingScreen.tsx @@ -1,5 +1,4 @@ -import { StaticScreenProps } from '@react-navigation/native'; -import { useIsFocused } from '@react-navigation/native'; +import { StaticScreenProps, useIsFocused } from '@react-navigation/native'; import LottieView from 'lottie-react-native'; import React, { useEffect, useState } from 'react'; import { StyleSheet, Text, View } from 'react-native'; @@ -24,7 +23,7 @@ const LoadingScreen: React.FC = ({}) => { if (currentState === 'completed') { setAnimationSource(successAnimation); - } else if (currentState === 'error') { + } else if (currentState === 'error' || currentState === 'failure') { setAnimationSource(failAnimation); } else { setAnimationSource(miscAnimation); diff --git a/app/src/utils/proving/provingMachine.ts b/app/src/utils/proving/provingMachine.ts index 872a6fc0f..ac666243d 100644 --- a/app/src/utils/proving/provingMachine.ts +++ b/app/src/utils/proving/provingMachine.ts @@ -168,7 +168,10 @@ export const useProvingStore = create((set, get) => { if (state.value === 'post_proving') { get().postProving(); } - if (get().circuitType !== 'disclose' && state.value === 'error') { + if ( + get().circuitType !== 'disclose' && + (state.value === 'error' || state.value === 'failure') + ) { setTimeout(() => { if (navigationRef.isReady()) { navigationRef.navigate('Launch');