diff --git a/src/pages/advanced.tsx b/src/pages/advanced.tsx index 0e5185b..f932b99 100644 --- a/src/pages/advanced.tsx +++ b/src/pages/advanced.tsx @@ -53,8 +53,9 @@ export default function Page() { // select the first valid buffer size for the newly selected depth setBufferSize( - ALL_DEPTH_SIZE_PAIRS.find((pair) => pair.maxDepth == maxDepth) - ?.maxBufferSize as ValidDepthSizePair["maxBufferSize"], + ALL_DEPTH_SIZE_PAIRS.find( + (pair) => pair.maxDepth == parseInt(e.target.value), + )?.maxBufferSize as ValidDepthSizePair["maxBufferSize"], ); }, [],