Skip to content

Commit

Permalink
fix(server): tip inauthentic synced info may be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Jun 13, 2019
1 parent 36b9e36 commit c817a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/models/sync_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def local_authentic_tip_block_number
end

def local_synced_inauthentic_tip_block_number
SyncInfo.tip_inauthentic_synced.recent.first.value || 0
SyncInfo.tip_inauthentic_synced.recent.first&.value || 0
end
end
end
Expand Down

0 comments on commit c817a85

Please sign in to comment.