From 24aeda2e05eed18d836df8d809abb75ff994edcc Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 24 May 2018 16:52:04 +0100 Subject: [PATCH] Fix bug where usage data link not visible when no cookie policy url --- src/components/views/globals/CookieBar.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/views/globals/CookieBar.js b/src/components/views/globals/CookieBar.js index ad00884dd2..82ac598532 100644 --- a/src/components/views/globals/CookieBar.js +++ b/src/components/views/globals/CookieBar.js @@ -76,7 +76,20 @@ export default class CookieBar extends React.Component { , }, - ) : _t("Help improve Riot by sending usage data? This will use a cookie.") } + ) : _t( + "Help improve Riot by sending usage data? " + + "This will use a cookie.", + {}, + { + 'UsageDataLink': (sub) => + { sub } + , + }, + ) } { _t("Yes please") }