Skip to content
Snippets Groups Projects
Commit cb85ae64 authored by Janis Daniel Dähne's avatar Janis Daniel Dähne
Browse files

- fixed issue where leading and trailing spaces in the enter release code...

- fixed issue where leading and trailing spaces in the enter release code dialog would lead to a wrong redirect url
parent 541e642a
Branches develop
No related tags found
No related merge requests found
......@@ -87,8 +87,8 @@ class enterReleaseCodeDialog extends React.Component<Props, any> {
//we only need to take care if the exercise is only visible to the owner
//if the release is hidden in overviews the link still works so this is ok
try {
await this.props.accessExerciseWithCodeAsync(this.props.dialogState.releaseCode)
history.push(getDoExerciseSiteToLink(this.props.dialogState.releaseCode))
await this.props.accessExerciseWithCodeAsync(this.props.dialogState.releaseCode.trim())
history.push(getDoExerciseSiteToLink(this.props.dialogState.releaseCode.trim()))
} catch (err) {
//error message is not shown here but in accessExerciseWithCodeAsync
}
......
......@@ -73,8 +73,8 @@ class EnterReleaseCodeView extends React.Component<Props, any> {
if (e.key.toLowerCase() !== 'enter') return
try {
await this.props.accessExerciseWithCodeAsync(this.props.dialogState.releaseCode)
history.push(getDoExerciseSiteToLink(this.props.dialogState.releaseCode))
await this.props.accessExerciseWithCodeAsync(this.props.dialogState.releaseCode.trim())
history.push(getDoExerciseSiteToLink(this.props.dialogState.releaseCode.trim()))
} catch (err) {
//error message is not shown here but in accessExerciseWithCodeAsync
}
......
......@@ -13,7 +13,7 @@ import Logger from './helpers/logger'
* y - breaking changes / new features
* z - fixes, small changes
*/
export const versionString = '2.20.1'
export const versionString = '2.20.2'
export const supportMail = 'yapex@informatik.uni-halle.de'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment