Skip to content

Commit

Permalink
chore(webapp): use endpoint updated time instead of local time
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Mar 7, 2023
1 parent 8550d14 commit 4e82091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/EndpointsTable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const EndpointsTable = ({ producers }) => {
const getStatus = (endpoint) => {
if (endpoint.response.status === undefined) return

const diffBlockTimems = new Date() - new Date(endpoint.head_block_time)
const diffBlockTimems = new Date(endpoint.updated_at) - new Date(endpoint.head_block_time)

if (diffBlockTimems <= syncToleranceInterval) {
return 'greenLight'
Expand Down

0 comments on commit 4e82091

Please sign in to comment.