Set header buttons to no phase when right panel is closed (#7506)

pull/21833/head
J. Ryan Stinnett 2022-01-11 10:32:55 +00:00 committed by GitHub
parent f6effc52fd
commit 81257933ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ export default abstract class HeaderButtons<P = {}> extends React.Component<IPro
}
}
public isPhase(phases: string | string[]) {
public isPhase(phases: string | string[]): boolean {
if (!RightPanelStore.instance.isOpenForRoom) return false;
if (Array.isArray(phases)) {
return phases.includes(this.state.phase);
} else {