135350b6dc
When `listenOnlyMode` is `false` and the audio dialog's "Cancel" action is clicked, the modal incorrectly re-renders instead of closing. Additionally, the "Cancel" action is mislabeled as "Back." This fix ensures the audio dialog closes properly when there are no options to select (i.e., `listenOnlyMode=false`). The `skipAudioOptions` method is revised to consider `listenOnlyMode` and ignore the "content" state. Ignoring the "content" state allows options to be skipped even if a subscreen is rendered (e.g., returning from the AudioSettings modal). The check for `content == null` combined with `skipAudioOptions` is only necessary when rendering the main modal. The `content == null` check has been moved to the relevant section. |
||
---|---|---|
.. | ||
component.jsx | ||
container.jsx | ||
service.js | ||
styles.js |