Skip to content

Commit

Permalink
chore(router): Miniscule fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Dec 28, 2023
1 parent 4263f46 commit 53fdc9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/router/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function matchPath(
// Map extracted values to their param name, casting the value if needed
const providedParams = matches[0].slice(1)

// @NOTE: refers to definiton e.g. '/page/{id}', not the actual params
// @NOTE: refers to definition e.g. '/page/{id}', not the actual params
if (routeParamsDefinition.length > 0) {
const params = providedParams.reduce<Record<string, unknown>>(
(acc, value, index) => {
Expand Down

0 comments on commit 53fdc9d

Please sign in to comment.