Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update activities to show txn originating from current address #8396

Merged
merged 10 commits into from
Mar 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rebase
  • Loading branch information
Jibz1 committed Mar 2, 2023
commit 3126e0efd3c1931c44b5decc388e8ef6396fb051
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export function useGetTransactionsByAddress(address: SuiAddress | null) {

return resp.sort(
// timestamp could be null, so we need to handle
(a, b) => (b?.timestamp_ms || 0) - (a.timestamp_ms || 0)
(a, b) =>
(b.timestamp_ms || b.timestampMs || 0) -
(a.timestamp_ms || b.timestampMs || 0)
);
},
{ enabled: !!address, staleTime: 10 * 1000 }
Expand Down