chore: if cached morph meaning response is null, show meaning not found message (#2249)

This commit is contained in:
ggurdin 2025-03-28 09:33:31 -04:00 committed by GitHub
parent 66e0f867d1
commit 5dc64c64c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,7 +155,9 @@ class MorphMeaningWidgetState extends State<MorphMeaningWidget> {
children: [
if (widget.leading != null) widget.leading!,
if (widget.leading != null) const TextSpan(text: ' '),
TextSpan(text: _cachedResponse!),
TextSpan(
text: _cachedResponse ?? L10n.of(context).meaningNotFound,
),
],
),
),