Skip to content

Commit

Permalink
Update react.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gayathrimantha authored Oct 14, 2023
1 parent b40c422 commit 8631f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function useRoute(defaultConfig) {
throw new Error('Ziggy error: missing configuration. Ensure that a `Ziggy` variable is defined globally or pass a config object into `useRoute()`.');
}

// Return the route function with provided or default config
// Return the route function with the provided or default config
return (name, params, absolute, config = defaultConfig) =>
route(name, params, absolute, config);
}
Expand Down

0 comments on commit 8631f5a

Please sign in to comment.