diff --git a/core/lib/presentation/utils/html_transformer/html_template.dart b/core/lib/presentation/utils/html_transformer/html_template.dart
index 7e383249a..017b3f850 100644
--- a/core/lib/presentation/utils/html_transformer/html_template.dart
+++ b/core/lib/presentation/utils/html_transformer/html_template.dart
@@ -26,7 +26,7 @@ String generateHtml(String content, {
double? minWidth,
String? styleCSS,
String? javaScripts,
- bool? hideScrollBar
+ bool hideScrollBar = true,
}) {
return '''
@@ -40,7 +40,7 @@ String generateHtml(String content, {
min-width: ${minWidth ?? 0}px;
overflow: auto;
}
- ${hideScrollBar == true ? '''
+ ${hideScrollBar ? '''
.tmail-content::-webkit-scrollbar {
display: none;
}