Explorar o código

improve userHomepagePath

Yuki Takei hai 1 ano
pai
achega
b3de687e8c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/core/src/utils/page-path-utils/index.ts

+ 1 - 1
packages/core/src/utils/page-path-utils/index.ts

@@ -128,7 +128,7 @@ export const isCreatablePage = (path: string): boolean => {
  * return user's homepage path
  * return user's homepage path
  * @param user
  * @param user
  */
  */
-export const userHomepagePath = (user: IUser | null | undefined): string => {
+export const userHomepagePath = (user: { username: string } | null | undefined): string => {
   if (user?.username == null) {
   if (user?.username == null) {
     return '';
     return '';
   }
   }