Skip to content

Commit ff1b476

Browse files
authored
Fix old audio engine mute button showing when useCustomUnlockedButton is set (#17363)
When `useCustomUnlockedButton` is set to `true` on the old audio engine, it is still getting shown when the audio engine V2 implementation is initialized and it's state gets immediately set to `suspended`. This change fixes the issue by checking the mute button's `enabled` flag before showing it.
1 parent dc5301a commit ff1b476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev/core/src/AudioV2/webAudio/webAudioUnmuteUI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class _WebAudioUnmuteUI {
6868
}
6969

7070
private _show(): void {
71-
if (!this._button) {
71+
if (!this._button || !this._enabled) {
7272
return;
7373
}
7474

0 commit comments

Comments
 (0)