Skip to content

Commit d241c97

Browse files
lachiehvados-cosmonic
authored andcommitted
fix(examples): remove string coercion in example
Signed-off-by: Lachlan Heywood <[email protected]>
1 parent f022b43 commit d241c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/components/bundled-esbuild/src/bundled-esbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function calculateScore(data: InputData): Promise<number> {
2323
return R.pipe(
2424
json,
2525
R.filter((x) => x.title === "Hello"),
26-
R.sumBy((x) => x.score),
26+
R.sumBy((x) => Number(x.score)),
2727
);
2828
}
2929

0 commit comments

Comments
 (0)