Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Set header buttons to no phase when right panel is closed (#7506)
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans authored Jan 11, 2022
1 parent f6effc5 commit 8125793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/views/right_panel/HeaderButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8125793

Please sign in to comment.