From 3d9a4cc2ef4072117070d8908af54d7dde6821cd Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 15 Oct 2014 16:49:42 +0900 Subject: [PATCH] Improving formatter function --- client/scripts/application.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/scripts/application.js b/client/scripts/application.js index 8e728c3..b4e4697 100644 --- a/client/scripts/application.js +++ b/client/scripts/application.js @@ -185,8 +185,10 @@ switch (delta) { case 0: return 'Most recent query'; + case 1: + return 'Previous query'; default: - return String(delta) + ' querie(s) back'; + return String(delta) + ' queries back'; } } });