Skip to content

Commit

Permalink
fix: Use correct function in assignLocalePathFn
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz committed Apr 4, 2024
1 parent 35ace8a commit be4151a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webapp-libs/webapp-core/src/utils/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const assignLocalePathFn =
if (typeof paths[route] !== 'string') {
throw Error('Invalid route');
}
return getLocalePath(paths[route] as string);
return fn(paths[route] as string);
};

const getTenantPathHelper = (p: string) => getLocalePath(getTenantPath(p));
Expand Down

0 comments on commit be4151a

Please sign in to comment.