Skip to content

Commit 63ddc05

Browse files
committed
Fix deleting causing weird update issues
1 parent 5896683 commit 63ddc05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/tools/gachacalc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export default function GachaCalc({ location }: { location: string }) {
241241
<h1 className="text-5xl font-bold pb-2">Gacha rate calculator</h1>
242242

243243
<NumberInput label="Pulls" set={setPulls} value={pulls} min={0} max={1260 * gachaTargets.length}/>
244-
{gachaTargets.map((gachaTarget, index) => <div key={index} className="bg-blend-multiply bg-slate-600 rounded-xl p-1 my-2">
244+
{gachaTargets.map((gachaTarget, index) => <div key={index * 100 + gachaTargets.length} className="bg-blend-multiply bg-slate-600 rounded-xl p-1 my-2">
245245
{gachaTargets.length > 1 &&
246246
<button className="bg-red-700 text-slate-50 cursor-pointer text-center rounded-lg px-2 py-1 my-2 float-right"
247247
onClick={() =>

0 commit comments

Comments
 (0)