From f5884e41fed7b0749f7f62d470650334c17e9ace Mon Sep 17 00:00:00 2001 From: Nguyen Huynh Date: Fri, 5 Apr 2024 13:48:31 -0400 Subject: [PATCH] removed default values for mcq and q&a cards. --- frontend/src/feature/cards/model/card.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/feature/cards/model/card.ts b/frontend/src/feature/cards/model/card.ts index 1d8e7e4..7df1aff 100644 --- a/frontend/src/feature/cards/model/card.ts +++ b/frontend/src/feature/cards/model/card.ts @@ -53,16 +53,16 @@ export const generateNewCard = (cardType: CardType) : Card =>{ switch (cardType) { case CardType.SIMPLEQA: card.type = CardType.SIMPLEQA; - card.answer = 'New card'; + card.answer = ''; break; case CardType.MULTIPLE_CHOICE: card.type = CardType.MULTIPLE_CHOICE; - card.correctOptions = [0]; - card.options = ['choice 1']; + card.correctOptions = []; + card.options = ['']; break; case CardType.SINGLE_CHOICE: card.type = CardType.SINGLE_CHOICE; - card.options = ['choice 1']; + card.options = ['']; card.correctOption = 0; break; default: