Skip to content

Commit 063ccac

Browse files
committed
Allow providing an empty title to InteractiveAuthDialog
1 parent ce1055f commit 063ccac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/dialogs/InteractiveAuthDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default class InteractiveAuthDialog<T> extends React.Component<Interactiv
136136
// Let's pick a title, body, and other params text that we'll show to the user. The order
137137
// is most specific first, so stagePhase > our props > defaults.
138138

139-
let title = this.state.authError ? "Error" : this.props.title || _t("common|authentication");
139+
let title = this.state.authError ? "Error" : (this.props.title ?? _t("common|authentication"));
140140
let body = this.state.authError ? null : this.props.body;
141141
let continueText: string | undefined;
142142
let continueKind: ContinueKind | undefined;

0 commit comments

Comments
 (0)