Skip to content

Commit

Permalink
fix: bad fetch when keplr not available
Browse files Browse the repository at this point in the history
  • Loading branch information
jtary committed Oct 18, 2023
1 parent 2c97d8f commit f7090fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/api/rpc/beta2/certificates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ export const loadActiveCertificateAuto = async () => {
const walletId = accounts?.[0].address;

if (!walletId) {
throw new Error('Unable to fetch active certificate. Unable to determine wallet ID.');
console.log('Unable to fetch active certificate. Unable to determine wallet ID.');

return { $type: 'Invalid Certificate' } as NoCertificate;
}

return loadActiveCertificate(walletId);
Expand Down

0 comments on commit f7090fd

Please sign in to comment.