From 64b9878dbc52f185624b597cad164b4aa124bd02 Mon Sep 17 00:00:00 2001 From: Sajkaan Date: Thu, 12 Jan 2017 15:37:06 +0100 Subject: [PATCH] Addresses bug described in #6 where the total count int call to was off --- .../com/teamtreehouse/flashy/controllers/IndexController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/teamtreehouse/flashy/controllers/IndexController.java b/src/main/java/com/teamtreehouse/flashy/controllers/IndexController.java index 2a6b75e..68958eb 100644 --- a/src/main/java/com/teamtreehouse/flashy/controllers/IndexController.java +++ b/src/main/java/com/teamtreehouse/flashy/controllers/IndexController.java @@ -35,7 +35,7 @@ public String index(Model model) { if (totalCount > AMOUNT_IN_TOTAL){ ctaBuilder.append(" and "); ctaBuilder.append(totalCount - AMOUNT_IN_TOTAL); - ctaBuilder.append(" more"); + ctaBuilder.append(" more."); model.addAttribute("cta", ctaBuilder.toString()); model.addAttribute("flashCardCount"); }