Skip to content

Commit

Permalink
return instead of throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmanos committed Nov 12, 2024
1 parent fd36ce2 commit 2a21a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useCheckURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function useCheckURL(urlToCheck: string): {
async function handle(urlToCheck: string) {
const userHandleB64u = keystore.getUserHandleB64u();
if (!userHandleB64u) {
throw new Error("User handle could not be extracted from keystore");
return;
}
const u = new URL(urlToCheck);
if (u.protocol === 'openid-credential-offer' || u.searchParams.get('credential_offer') || u.searchParams.get('credential_offer_uri')) {
Expand Down

0 comments on commit 2a21a98

Please sign in to comment.