Skip to content

Commit

Permalink
fix: restore volume to original after unmute
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyCA committed Feb 15, 2021
1 parent e1ab613 commit fc1193c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ export default class ReactJkMusicPlayer extends PureComponent {

onResetVolume = () => {
const { currentAudioVolume } = this.state
this.setAudioVolume(currentAudioVolume || 0.1)
this.setAudioVolume(this.getVolumeBarValue(currentAudioVolume || 0.1))
}

setAudioVolume = (volumeBarValue) => {
Expand Down

0 comments on commit fc1193c

Please sign in to comment.