Skip to content

Commit

Permalink
Update packages/insomnia/src/ui/routes/test-suite.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire committed Sep 12, 2024
1 parent ef0e21d commit b74845b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/insomnia/src/ui/routes/test-suite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ const UnitTestItemView = ({
?.filter(x => !isNaN(x));
let highestNumberedConstant = Math.max(...numbers);
// if value is empty, highestNumberedConstant will be -Infinity, so setting it to zero
if (highestNumberedConstant == -Infinity) {
if (highestNumberedConstant === -Infinity) {
highestNumberedConstant = 0;
}
const variableName = 'response' + (highestNumberedConstant + 1);
Expand Down

0 comments on commit b74845b

Please sign in to comment.