Skip to content

Commit 904be23

Browse files
Terms: removed unnecessary reassign
1 parent 2f890d6 commit 904be23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/containers/terms-detail/index.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ class TermsDetailPageContainer extends React.Component {
7575
const { termsAccepted, showModal } = this.state;
7676

7777
if (details && details.isLegacyTerm && !history.location.pathname.includes(details.id)) {
78-
history.location.pathname = `/challenges/terms/detail/${details.id}`; // eslint-disable-line no-param-reassign
79-
history.push(history.location.pathname, history.state);
78+
const path = `/challenges/terms/detail/${details.id}`;
79+
history.push(path, history.state);
8080
}
8181

8282
return (

0 commit comments

Comments
 (0)