diff --git a/app/routes/index.js b/app/routes/index.js index 7cdd83d9..4bf6a55a 100644 --- a/app/routes/index.js +++ b/app/routes/index.js @@ -7,10 +7,14 @@ const fxPromo = require('../templates/fxPromo'); const app = choo(); +function showBanner(state) { + return state.promo && !state.route.startsWith('/unsupported/'); +} + function body(template) { return function(state, emit) { const b = html` - ${state.promo ? fxPromo(state, emit) : ''} + ${showBanner(state) ? fxPromo(state, emit) : ''} ${header(state)}