From 3fae72400b0f99eb4ba6180bd061aa1bfe6c3611 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Fri, 6 Apr 2018 12:19:44 +0900 Subject: [PATCH] Add missing src/renderers/get-user-name.ts --- src/renderers/get-user-name.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/renderers/get-user-name.ts diff --git a/src/renderers/get-user-name.ts b/src/renderers/get-user-name.ts new file mode 100644 index 000000000..acd5e6626 --- /dev/null +++ b/src/renderers/get-user-name.ts @@ -0,0 +1,5 @@ +import { IUser } from '../models/user'; + +export default function(user: IUser): string { + return user.name || 'ๅ็„กใ—'; +}