uselotus / lotus

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

Found unnecessary boolean casts JS-0012
Bug risk
Minor
a year agoa year old
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>
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"108              )}109            </p>
110          )}
111          {metric.metric_type === "stateful" && (
64  return (
65    <div>
66      <h2 className="mb-2 pb-4 pt-4 font-bold text-main">Credit Balance</h2>
67      {!!balanceAdjustments?.length ? (68        <Table69          columns={columns}70          dataSource={balanceAdjustments}71          pagination={{ pageSize: 10 }}72        />73      ) : (74        <p>No Credit Items Found</p>75      )}76    </div>
77  );
78};