Skip to content

Commit

Permalink
Remove received transactions from different wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
mikozet committed May 12, 2023
1 parent 09316df commit 9bade76
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/store/activity/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,19 @@ export function checkFinishedActivities({
const lastReceivedTransactionDate = DateTime.fromISO(
getLastReceivedTransaction(),
);

for await (const receivedTransferActivity of activities) {
if (receivedTransferActivity.type === ActivityTypes.HUB_TRANSFER) {
const receivedTransferActivityDate = DateTime.fromSeconds(
receivedTransferActivity.timestamp,
);
if (receivedTransferActivityDate > lastReceivedTransactionDate) {
const sender = receivedTransferActivity?.data?.from;

const sender = receivedTransferActivity?.data?.from;

if (
receivedTransferActivityDate > lastReceivedTransactionDate &&
sender !== safe.currentAccount
) {
let senderName = '';
const senderData = await resolveUsernames([sender], true);
if (sender in senderData) {
Expand Down

0 comments on commit 9bade76

Please sign in to comment.