Skip to content

Commit

Permalink
chore: small code refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce McMath <[email protected]>
  • Loading branch information
bryce-mcmath committed Nov 17, 2023
1 parent c064782 commit 527d3fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/helpers/PushNotificationsHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ const _getMediatorConnection = async (agent: Agent): Promise<ConnectionRecord |
} else {
return acc.createdAt > cur.updatedAt ? acc : cur
}
}

if (!cur.updatedAt) {
return acc.updatedAt > cur.createdAt ? acc : cur
} else {
if (!cur.updatedAt) {
return acc.updatedAt > cur.createdAt ? acc : cur
} else {
return acc.updatedAt > cur.updatedAt ? acc : cur
}
return acc.updatedAt > cur.updatedAt ? acc : cur
}
})

Expand Down

0 comments on commit 527d3fd

Please sign in to comment.