Skip to content

Commit 5896683

Browse files
committed
Fix remove
1 parent d1f06c1 commit 5896683

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
@@ -245,7 +245,7 @@ export default function GachaCalc({ location }: { location: string }) {
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={() =>
248-
setGachaTargets([...gachaTargets, createDefaultTarget(gachas.weapon)])
248+
setGachaTargets(gachaTargets.filter((_, i) => i != index))
249249
}>
250250
Remove gacha target
251251
</button>

0 commit comments

Comments
 (0)