Skip to content

Commit 2970423

Browse files
fix tx hist bug
1 parent d752a9e commit 2970423

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store/transactions.atom.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ export const TxHistoryAtom = (contract: string, owner: string) =>
8585
// balData just to trigger a refetch
8686
queryKey: ['tx_history', contract, owner, JSON.stringify(get(newTxsAtom))],
8787
queryFn: async ({ queryKey }: any): Promise<TxHistory> => {
88-
const [, { contract, owner }] = queryKey;
88+
// const [, { contract, owner }] = queryKey;
8989
const res = await getTxHistory(contract, owner);
9090

91-
console.log('TxHistoryAtom res', res, contract, owner, queryKey);
91+
console.log('TxHistoryAtom res', res, { contract, owner, queryKey });
9292
// add new txs from local cache
9393
const newTxs = get(newTxsAtom);
9494
console.log('TxHistoryAtom newTxs', newTxs);

0 commit comments

Comments
 (0)