From 6fb79420bcd460d59f14629733be6ae806809e8e Mon Sep 17 00:00:00 2001 From: Ben Meyrick Date: Fri, 26 Apr 2019 12:13:13 +0100 Subject: [PATCH] Add else to ternary condition to prevent jinja from erroring (#324) --- src/components/footer/_macro.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/footer/_macro.njk b/src/components/footer/_macro.njk index 887959c144..21df8d3093 100644 --- a/src/components/footer/_macro.njk +++ b/src/components/footer/_macro.njk @@ -30,7 +30,7 @@ onsButton({ "id": params.button.id, "type": params.button.type, - "classes": "btn--ghost-blue" + (" " + params.button.classes if params.button.classes), + "classes": "btn--ghost-blue" + (" " + params.button.classes if params.button.classes else ""), "text": params.button.text, "html": params.button.html, "name": params.button.name,