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

pull/1817/head
ggurdin 8 months ago committed by GitHub
parent 66e0f867d1
commit 5dc64c64c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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,
),
],
),
),

Loading…
Cancel
Save