Skip to content

Commit

Permalink
fix: localhost pubkey fetch error (#20)
Browse files Browse the repository at this point in the history
* fix: localhost pubkey fetch error

* chore: remove dead code
  • Loading branch information
0xtsukino authored Jun 11, 2024
1 parent 8403c28 commit 31875ee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions web/pages/FileDrop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ export default function FileDrop(): ReactElement {

const onVerify = useCallback(async (json: any, key = '') => {
const { verify } = await import('tlsn-js');
const resp = await verify(json, key);
setVerifiedProof(resp);
setStep('result');
try {
const resp = await verify(json, key);
setVerifiedProof(resp);
setStep('result');
} catch (e) {
setStep('pubkey');
}
}, []);

const handleFileUpload = useCallback(
Expand Down

0 comments on commit 31875ee

Please sign in to comment.