diff --git a/components/AttestationButton.tsx b/components/AttestationButton.tsx index f3a0a726f4..cf41d57acd 100644 --- a/components/AttestationButton.tsx +++ b/components/AttestationButton.tsx @@ -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 {