summaryrefslogtreecommitdiff
path: root/components/tweaks.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-26 19:00:53 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-26 19:00:53 +0200
commitc707b3af917af40a9a06639d217937bfecef9ecd (patch)
treeddef5efa34f08c48c496fc06b03f00825048ab20 /components/tweaks.tsx
parent654e71bfacc273a964a5b620e98bd504cef85460 (diff)
fixed a single typescript error
Diffstat (limited to 'components/tweaks.tsx')
-rw-r--r--components/tweaks.tsx12
1 files changed, 5 insertions, 7 deletions
diff --git a/components/tweaks.tsx b/components/tweaks.tsx
index 43a8ecf..90b2aea 100644
--- a/components/tweaks.tsx
+++ b/components/tweaks.tsx
@@ -407,13 +407,11 @@ export const Tweaks = (props: TweakProps) => {
setPhysics({ ...physics, algorithmName: v.target.value })
}}
>
- {physics.algorithmOptions.map((opt: string, i: number) => {
- return (
- <option key={i} value={opt}>
- {opt}
- </option>
- )
- })}
+ {physics.algorithmOptions.map((opt: string) => (
+ <option key={opt} value={opt}>
+ {opt}
+ </option>
+ ))}
</Select>
{/* <DropDownMenu
displayValue={physics.algorithmName}