Skip to content

fix: for issue #4784 #4990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

narekcat
Copy link
Contributor

@narekcat narekcat commented Sep 23, 2020

} = this.props;
const { termsAccepted, showModal } = this.state;

if (details && details.isLegacyTerm && !history.location.pathname.includes(details.id)) {
history.location.pathname = `/challenges/terms/detail/${details.id}`; // eslint-disable-line no-param-reassign
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@narekcat unnecessary reassign here, just use:

const path = `/challenges/terms/detail/${details.id}`
history.push(path, history.state);

@luizrrodrigues luizrrodrigues requested review from luizrrodrigues and removed request for sushilshinde and ajefts September 24, 2020 00:30
@luizrrodrigues luizrrodrigues merged commit edf57c8 into topcoder-platform:milestone-20200917 Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants