From 438351254004d48189bf85ca6abc84fce1487837 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Sun, 22 Sep 2024 22:26:35 +0530 Subject: [PATCH] [auth] Minor fix --- auth/lib/ui/code_widget.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auth/lib/ui/code_widget.dart b/auth/lib/ui/code_widget.dart index d5a4dfc7a0..83f73dde43 100644 --- a/auth/lib/ui/code_widget.dart +++ b/auth/lib/ui/code_widget.dart @@ -611,11 +611,13 @@ class _CodeWidgetState extends State { } FocusScope.of(context).requestFocus(); final l10n = context.l10n; + final String issuerAccount = widget.code.account.isNotEmpty + ? '${widget.code.issuer} (${widget.code.account})' + : widget.code.issuer; await showChoiceActionSheet( context, title: l10n.trashCode, - body: l10n - .trashCodeMessage('${widget.code.issuer} (${widget.code.account})'), + body: l10n.trashCodeMessage(issuerAccount), firstButtonLabel: l10n.trash, isCritical: true, firstButtonOnTap: () async {