From d1c78298535ab56e8cbb9d04fd1dcb1241c274dd Mon Sep 17 00:00:00 2001 From: picklesrus Date: Mon, 18 Nov 2019 14:06:19 -0500 Subject: [PATCH] Use indexOf instead of includes because of old browsers. --- src/components/join-flow/username-step.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/join-flow/username-step.jsx b/src/components/join-flow/username-step.jsx index 647ad3506..138141f6a 100644 --- a/src/components/join-flow/username-step.jsx +++ b/src/components/join-flow/username-step.jsx @@ -39,7 +39,7 @@ class UsernameStep extends React.Component { componentDidMount () { // Send info to analytics when we aren't on the standalone page. // If we are on the standalone join page, the page load will take care of this. - if (!window.location.pathname.includes('/join')) { + if (window.location.pathname.indexOf('/join') === -1) { if (this.props.sendAnalytics) { this.props.sendAnalytics('join-username-modal'); }