Skip to content

Commit c0b941f

Browse files
committed
Reneame subgraph api function
We should write `TBTC` (started with capital `T`) when it's in the middle of the word that is writtne in camelCase convention. Everywhere else we should stick to `tBTC`.
1 parent 713bf2f commit c0b941f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hooks/tbtc/useFetchRecentDeposits.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const useFetchRecentDeposits = (
2222
setIsFetching(true)
2323

2424
try {
25-
const data = await subgraphAPI.fetchRecenttBTCDeposits(numberOfDeposits)
25+
const data = await subgraphAPI.fetchRecentTBTCDeposits(numberOfDeposits)
2626
if (!shouldUpdateState.current) return
2727

2828
setDeposits(

src/utils/subgraphAPI.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const mapToRecentDepositData = (transaction: TransactionRawResponse) => {
3131
}
3232
}
3333

34-
const fetchRecenttBTCDeposits = async (numberOfDeposits = 4) => {
34+
const fetchRecentTBTCDeposits = async (numberOfDeposits = 4) => {
3535
const response = await axios.post(TBTC_SUBGRAPH_URL, {
3636
query: `query {
3737
transactions(
@@ -64,5 +64,5 @@ const fetchRecenttBTCDeposits = async (numberOfDeposits = 4) => {
6464
}
6565

6666
export const subgraphAPI = {
67-
fetchRecenttBTCDeposits,
67+
fetchRecentTBTCDeposits,
6868
}

0 commit comments

Comments
 (0)