Skip to content

Incorrect random() function usage in MainChart #454

@codomposer

Description

@codomposer

Description

The random() function in MainChart is defined to accept no parameters but is being called with arguments that are completely ignored, leading to incorrect chart data generation.

Location

File: src/views/dashboard/MainChart.js
Function definition: Line 29
Incorrect usage: Lines 46-52, 63-69

Problem

The random() function is defined as:

const random = () => Math.round(Math.random() * 100)

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