Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app/src/screens/Onboarding/LoadingScreen.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -24,7 +23,7 @@ const LoadingScreen: React.FC<LoadingScreenProps> = ({}) => {

if (currentState === 'completed') {
setAnimationSource(successAnimation);
} else if (currentState === 'error') {
} else if (currentState === 'error' || currentState === 'failure') {
setAnimationSource(failAnimation);
} else {
setAnimationSource(miscAnimation);
Expand Down
6 changes: 5 additions & 1 deletion app/src/utils/proving/provingMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ export const useProvingStore = create<ProvingState>((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');
Expand Down Expand Up @@ -338,6 +341,7 @@ export const useProvingStore = create<ProvingState>((set, get) => {
const data =
typeof message === 'string' ? JSON.parse(message) : message;
console.log('Received status update with status:', data.status);
console.log(data);
if (data.status === 3 || data.status === 5) {
console.error(
'Proof generation/verification failed (status 3 or 5).',
Expand Down