uselotus / lotus

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

Avoid using an element's index as the key prop JS-0437
Bug risk
Major
a year agoa year old
Do not use Array index in keys
168            <div className=" flex flex-col space-y-6 ">
169              <Row gutter={[24, 32]}>
170                {yearlyPlans?.map((item, key) => (
171                  <Col span={8} key={key}>172                    <PlanCard plan={item} />
173                  </Col>
174                ))}
Do not use Array index in keys
176              {yearlyCustom?.length > 0 && <h2>Custom Plans</h2>}
177              <Row gutter={[24, 32]}>
178                {yearlyCustom?.map((item, key) => (
179                  <Col span={8} key={key}>180                    <PlanCard plan={item} />
181                  </Col>
182                ))}
Do not use Array index in keys
157              {quarterlyCustom?.length > 0 && <h2>Custom Plans</h2>}
158              <Row gutter={[24, 32]}>
159                {quarterlyCustom?.map((item, key) => (
160                  <Col span={8} key={key}>161                    <PlanCard plan={item} />
162                  </Col>
163                ))}
Do not use Array index in keys
108            <div className=" flex flex-col space-y-6 ">
109              <Row gutter={[24, 32]}>
110                {allPlans?.map((item, key) => (
111                  <Col span={8} key={key}>112                    <PlanCard plan={item} />
113                  </Col>
114                ))}
Do not use Array index in keys
117
118              <Row gutter={[24, 32]}>
119                {allCustom?.map((item, key) => (
120                  <Col span={8} key={key}>121                    <PlanCard plan={item} />
122                  </Col>
123                ))}