From cbc4bd8f5d85b0a6f1e3bc797c47564cee5c4e62 Mon Sep 17 00:00:00 2001 From: tykayn Date: Wed, 28 Apr 2021 12:24:41 +0200 Subject: [PATCH] default value of vote added --- src/app/core/models/vote.model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/core/models/vote.model.ts b/src/app/core/models/vote.model.ts index 5adb2969..fa6645c0 100644 --- a/src/app/core/models/vote.model.ts +++ b/src/app/core/models/vote.model.ts @@ -1,6 +1,6 @@ export class Vote { - public choice_id: number; - public value: string; // valeur de réponse + public choice_id: number = 0; + public value: string = ''; // valeur de réponse constructor(choice_id?) { if (choice_id) {