From 39b896a900f4c0c3bf48cab9e01bc2f7b1f05e47 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 0000000000..acd5e6626d --- /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 || 'ๅ็„กใ—'; +}