-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Issue
The flags SHOW_PUSH_CHANNEL and SHOW_EMAIL_CHANNEL explicitly check for the string 'true'. As a result, the Boolean value True was incorrectly treated as an "off" state due to this hard-coded check. Waffle flags should operate as Boolean values instead. It will cause any community instance that uses a Boolean value.
SHOW_PUSH_CHANNEL: process.env.SHOW_PUSH_CHANNEL === 'true'
...(getConfig().SHOW_EMAIL_CHANNEL === 'true' && { EMAIL: 'email' }),
Fix
The logic for the waffle flags in the account MFE has been corrected. If a flag is empty, missing, or not available in the config, it is now considered false. Any flag with a non-empty string value is considered true.
For Example
If SHOW_PUSH_CHANNEL = '', it will be treated as the flag being off.
If SHOW_PUSH_CHANNEL = 'true', it will be treated as the flag being on.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status