Skip to content

Commit cba23b9

Browse files
committed
fix: fix invalid reduce in buildTemplate
1 parent f72fafa commit cba23b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/string.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const buildTemplate = (strings: TemplateStringsArray, ...values: unknown[
2525
const value = values[index] ?? '';
2626

2727
return `${state}${string}${value}`;
28-
});
28+
}, '');
2929

3030
return result;
3131
};

0 commit comments

Comments
 (0)