From 187a17dac78e0861447b0889a170c75fe7d72308 Mon Sep 17 00:00:00 2001
From: Chris Lawton <chris.lawton@torchbox.com>
Date: Tue, 8 Jan 2019 09:55:00 +0000
Subject: [PATCH] button text only needs to be updated when the filters are
 opened

---
 opentech/static_src/src/javascript/apply/submission-filters.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/opentech/static_src/src/javascript/apply/submission-filters.js b/opentech/static_src/src/javascript/apply/submission-filters.js
index b003e2bf8..0a6ac5113 100644
--- a/opentech/static_src/src/javascript/apply/submission-filters.js
+++ b/opentech/static_src/src/javascript/apply/submission-filters.js
@@ -50,9 +50,8 @@
         }
         else {
             $body.addClass(filterOpenClass);
+            updateButtonText();
         }
-
-        updateButtonText();
     });
 
     // close filters on mobile
-- 
GitLab