Skip to content

Commit

Permalink
lint error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidmstrr committed May 1, 2024
1 parent adda96c commit 6fe0a52
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/AttestationButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ export default function AttestationButton(props: any) {
if (attestationStatus === 'neutral') {
setLoading(true);
try {
const { attestations, status } = await stores.lightningAddressStore.lookupAttestations(hash, amount_msat);
const { attestations, status } =
await stores.lightningAddressStore.lookupAttestations(
hash,
amount_msat
);
setAttestations(attestations);
setAttestationStatus(status || '' || 'error');
} catch (error){
} catch (error) {
console.error('Error fetching attestations:', error);
setAttestationStatus('error' || '');
} finally {
} finally {
setLoading(false);
}
} else {
Expand Down

0 comments on commit 6fe0a52

Please sign in to comment.