From 28f4bd92705adfbb31b768753f8c05b880e54eb5 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Sun, 17 May 2020 10:59:42 +0200 Subject: [PATCH] handle document uid --- src/models/Dev.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/models/Dev.ts b/src/models/Dev.ts index 50a290e..385c227 100644 --- a/src/models/Dev.ts +++ b/src/models/Dev.ts @@ -31,9 +31,10 @@ interface Dev extends DevSummary { export const getDescription = (status: string, company: string) => `${status} at ${company}`; -/** blank Dev serve as placeholder when initializing a new profile */ -export const blankDev: Dev = { - id: '42', +/** blank Dev serve as placeholder when initializing a new profile + * id is not specified to not overwrite document uid. + */ +export const blankDev = { isActive: true, displayName: '', status: 'Developer',