Skip to content

Commit

Permalink
fix mock passport data import
Browse files Browse the repository at this point in the history
  • Loading branch information
remicolin committed Jul 17, 2024
1 parent 3669e7c commit 986bbeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/src/screens/MainScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { contribute } from '../utils/contribute';
import { sendCSCARequest } from '../utils/cscaRequest';
import { sendRegisterTransaction } from '../utils/transactions';
// import utils from common
import { mockPassportData_sha256WithRSAEncryption_65537 } from '../../../common/src/utils/mockPassportData';
import { mockPassportData_sha256_rsa_65537 } from '../../../common/src/constants/mockPassportData';
import { getCSCAInputs } from '../../../common/src/utils/csca';
import { formatSigAlgNameForCircuit } from '../../../common/src/utils/utils';
// import screens
Expand Down Expand Up @@ -95,7 +95,7 @@ const MainScreen: React.FC = () => {

const handleSkip = () => {
update({
passportData: mockPassportData_sha256WithRSAEncryption_65537
passportData: mockPassportData_sha256_rsa_65537
})
setStep(Steps.NEXT_SCREEN);
deleteMrzFields();
Expand Down
4 changes: 2 additions & 2 deletions app/src/stores/userStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
DEFAULT_DOE,
} from '@env';
import forge from 'node-forge';
import { mockPassportData_sha256WithRSAEncryption_65537 } from '../../../common/src/utils/mockPassportData';
import { mockPassportData_sha256_rsa_65537 } from '../../../common/src/constants/mockPassportData';
import { PassportData, Proof } from '../../../common/src/utils/types';
import * as Keychain from 'react-native-keychain';
import * as amplitude from '@amplitude/analytics-react-native';
Expand Down Expand Up @@ -50,7 +50,7 @@ const useUserStore = create<UserState>((set, get) => ({
dateOfExpiry: DEFAULT_DOE ?? "",
dscSecret: null,
registered: false,
passportData: mockPassportData_sha256WithRSAEncryption_65537,
passportData: mockPassportData_sha256_rsa_65537,
secret: "",
dscCertificate: null,
cscaProof: null,
Expand Down

0 comments on commit 986bbeb

Please sign in to comment.