We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1f06c1 commit 5896683Copy full SHA for 5896683
pages/tools/gachacalc.tsx
@@ -245,7 +245,7 @@ export default function GachaCalc({ location }: { location: string }) {
245
{gachaTargets.length > 1 &&
246
<button className="bg-red-700 text-slate-50 cursor-pointer text-center rounded-lg px-2 py-1 my-2 float-right"
247
onClick={() =>
248
- setGachaTargets([...gachaTargets, createDefaultTarget(gachas.weapon)])
+ setGachaTargets(gachaTargets.filter((_, i) => i != index))
249
}>
250
Remove gacha target
251
</button>
0 commit comments