Skip to content

Commit

Permalink
feat: disable lint errors where expected
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Nov 20, 2024
1 parent 5ec32c0 commit 17a3da0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/hooks/use-blockchain-height-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function useBlockchainHeightQuery(): number | undefined {
if (!response.ok) throw new Error('Network response was not ok');
return response.json();
} catch (error) {
// eslint-disable-next-line no-console
console.error('Error fetching blockchain height', error);
return undefined;
}
Expand Down
2 changes: 2 additions & 0 deletions src/app/hooks/use-mint-burn-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function useMintBurnEvents(): UseMintBurnEventsReturnType {

return await response.json();
} catch (error) {
// eslint-disable-next-line no-console
console.error(`Error fetching mint burn events`, error);
return [];
}
Expand Down Expand Up @@ -60,6 +61,7 @@ export function useMintBurnEvents(): UseMintBurnEventsReturnType {
merchantMintBurnEvents: mintBurnEvents,
};
} catch (error) {
// eslint-disable-next-line no-console
console.error(`Error fetching mint burn events`, error);
return undefined;
}
Expand Down
1 change: 1 addition & 0 deletions src/app/hooks/use-points.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function usePoints(): UsePointsReturnType {

return responseData.points;
} catch (error) {
// eslint-disable-next-line no-console
console.error(`Error fetching user: ${address} points`, error);
return undefined;
}
Expand Down
1 change: 1 addition & 0 deletions src/app/hooks/use-proof-of-reserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function useProofOfReserve(): UseProofOfReserveReturnType {

return await response.json();
} catch (error) {
// eslint-disable-next-line no-console
console.error('Error fetching Proof of Reserve', error);
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions src/app/hooks/use-total-supply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function useTotalSupply(): UseTotalSupplyReturnType {

return responseData;
} catch (error) {
// eslint-disable-next-line no-console
console.error('Error fetching Total Supply', error);
return undefined;
}
Expand Down

0 comments on commit 17a3da0

Please sign in to comment.