From 57d803f4d89eb6887bcfa26d1bbabd8468ec3f07 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Tue, 5 Oct 2021 16:13:54 +0700 Subject: [PATCH] fixed user description issue --- src/utils/hooks/user/useUserDescription.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/hooks/user/useUserDescription.ts b/src/utils/hooks/user/useUserDescription.ts index 6565a99d..ddad43ec 100644 --- a/src/utils/hooks/user/useUserDescription.ts +++ b/src/utils/hooks/user/useUserDescription.ts @@ -17,5 +17,5 @@ export const useUserDescription = (user?: Partial) => { return 'Юнит деактивирован'; } - return randomPhrase; + return user.description || randomPhrase; };