We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e979b1 commit c05ab12Copy full SHA for c05ab12
components/ChatWindow.tsx
@@ -242,12 +242,12 @@ class ChatWindow extends React.Component<Props, State> {
242
this.logger.debug('Handling subscription plan:', payload);
243
244
// 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;
+ const plan = payload && payload.plan;
+ const shouldDisplayBranding = plan
+ ? String(plan).toLowerCase() === 'starter'
+ : false;
249
250
- this.setState({shouldDisplayBranding: true});
+ this.setState({shouldDisplayBranding});
251
};
252
253
handleToggleDisplay = (payload: any = {}) => {
0 commit comments