Skip to content

Commit

Permalink
fix(ADA-111): Seek backwards’ and ‘Seek forward’ labels (#816)
Browse files Browse the repository at this point in the history
issue:
in case props.step is null the label of seek button is "seek backwards/forwards" and not with specific time

solution:
use the default step in case of props.step is null

solves ADA-111
  • Loading branch information
Tzipi-kaltura committed Nov 27, 2023
1 parent 7ac3897 commit 35efa14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/forward/forward.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const mapStateToProps = state => ({
* @returns {Object} - The object translations
*/
const translates = (props: any) => ({
forwardText: !props.step ? <Text id={'controls.forward'}></Text> : <Text id={'controls.secondsForward'} fields={{seconds: props.step}}></Text>
forwardText: <Text id={'controls.secondsForward'} fields={{seconds: props.step || FORWARD_DEFAULT_STEP}}></Text>
});
/**
* Forward component
Expand Down
2 changes: 1 addition & 1 deletion src/components/rewind/rewind.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const mapStateToProps = state => ({
* @returns {Object} - The object translations
*/
const translates = (props: any) => ({
rewindText: !props.step ? <Text id={'controls.rewind'}></Text> : <Text id={'controls.secondsRewind'} fields={{seconds: props.step}}></Text>
rewindText: <Text id={'controls.secondsRewind'} fields={{seconds: props.step || REWIND_DEFAULT_STEP}}></Text>
});
/**
* Rewind component
Expand Down

0 comments on commit 35efa14

Please sign in to comment.