Skip to content

Commit c05ab12

Browse files
committed
Temp support for removing branding
1 parent 2e979b1 commit c05ab12

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/ChatWindow.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ class ChatWindow extends React.Component<Props, State> {
242242
this.logger.debug('Handling subscription plan:', payload);
243243

244244
// TODO: figure out the best way to determine when to display branding
245-
// const plan = payload && payload.plan;
246-
// const shouldDisplayBranding = plan
247-
// ? String(plan).toLowerCase() === 'starter'
248-
// : false;
245+
const plan = payload && payload.plan;
246+
const shouldDisplayBranding = plan
247+
? String(plan).toLowerCase() === 'starter'
248+
: false;
249249

250-
this.setState({shouldDisplayBranding: true});
250+
this.setState({shouldDisplayBranding});
251251
};
252252

253253
handleToggleDisplay = (payload: any = {}) => {

0 commit comments

Comments
 (0)