uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Found shorthand type coercions JS-0066
Anti-pattern
Minor
a year agoa year old
123          </ul>
124        </Paper>
125
126        {!activityItems && !!cursor && (127          <div className="loadMoreSpinner">
128            <LoadingSpinner />.
129          </div>
use Boolean(currentMetric) instead.
194        }}
195        options={false}
196      />
197      {!!currentMetric && (198        <MetricDetails
199          metric={currentMetric}
200          onclose={() => setCurrentMetric(null)}
use Boolean(metric.event_type) instead.
111          {metric.metric_type === "stateful" && (
112            <p>
113              <b className="mr-2">Event Type:</b>
114              {!!metric.event_type ? <Tag>{metric.event_type}</Tag> : "N/A"}115            </p>
116          )}
117        </div>
use Boolean(metric.billable_aggregation_type) instead.
101          {metric.metric_type === "rate" && (
102            <p>
103              <b className="mr-2">Aggregation Type:</b>
104              {!!metric.billable_aggregation_type ? (105                <Tag>{metric.billable_aggregation_type}</Tag>
106              ) : (
107                "N/A"
use Boolean(cursor) instead.
 99          className="hover:bg-background"
100          style={{ background: "#ffffff" }}
101        >
102          {!data && !!cursor && (103            <div className="loadMoreSpinner">
104              <LoadingSpinner />.
105            </div>