Skip to content

Commit

Permalink
chore: update playback toast
Browse files Browse the repository at this point in the history
  • Loading branch information
ambar committed Feb 7, 2022
1 parent b5ae016 commit d39df49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/griffith/src/components/usePlayerShortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ const usePlayerShortcuts = ({
)
if (index >= 0) {
const next = playbackRates[index + (dir === 'next' ? 1 : -1)]
actionToastDispatch({
icon: displayIcons.play,
label: (next || currentPlaybackRate).text,
})
if (next) {
actionToastDispatch({icon: displayIcons.play, label: next.text})
setCurrentPlaybackRate(next)
}
}
Expand Down

0 comments on commit d39df49

Please sign in to comment.