Skip to content

Commit

Permalink
Only show beta tag in saas platform
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdat committed Oct 21, 2024
1 parent 4281ff6 commit f64a697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ApplicationLogoWidthTextWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return TMailButtonWidget.fromIcon(
icon: PlatformInfo.isWeb && !AppConfig.isSaasPlatForm
icon: PlatformInfo.isWeb && AppConfig.isSaasPlatForm
? _imagePaths.icLogoWithTextBeta
: _imagePaths.icLogoWithText,
iconSize: 33,
Expand Down
2 changes: 1 addition & 1 deletion lib/main/utils/app_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ class AppConfig {

static String get _platformEnv => dotenv.get('PLATFORM', fallback: 'other');

static bool get isSaasPlatForm => _platformEnv == saasPlatform;
static bool get isSaasPlatForm => _platformEnv.toLowerCase() == saasPlatform;
}

0 comments on commit f64a697

Please sign in to comment.