Skip to content

Leaderboard crashes when node version is unknown #6

@GustavoStingelin

Description

@GustavoStingelin

The leaderboard crashes when the fork observer returns node info with an unknown version string, because getVersionNumber assumes the string contains : and ends up indexing into undefined.

Reference:

export const getVersionNumber = (version: string) => {

export const getVersionNumber = (version: string) => {
  // get the version number from the version string
  return version.split(":")[1].split("/")[0].split("(")[0] ?? false;
}
Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions