diff --git a/catalyst_voices/lib/pages/account/account_page.dart b/catalyst_voices/lib/pages/account/account_page.dart index 9c26c0a590..f89efc9ef3 100644 --- a/catalyst_voices/lib/pages/account/account_page.dart +++ b/catalyst_voices/lib/pages/account/account_page.dart @@ -43,7 +43,7 @@ final class AccountPage extends StatelessWidget { context: context, builder: (context) { return DeleteKeychainDialog( - onDeleteKeychain: () async { + onRemoveKeychainConfirmed: () async { // TODO(Jakub): remove keychain Navigator.of(context).pop(); await VoicesDialog.show( diff --git a/catalyst_voices/lib/pages/account/delete_keychain_dialog.dart b/catalyst_voices/lib/pages/account/delete_keychain_dialog.dart index 38c5f403c9..f57200bb64 100644 --- a/catalyst_voices/lib/pages/account/delete_keychain_dialog.dart +++ b/catalyst_voices/lib/pages/account/delete_keychain_dialog.dart @@ -8,11 +8,11 @@ import 'package:catalyst_voices_localization/catalyst_voices_localization.dart'; import 'package:flutter/material.dart'; class DeleteKeychainDialog extends StatefulWidget { - final VoidCallback? onDeleteKeychain; + final VoidCallback? onRemoveKeychainConfirmed; const DeleteKeychainDialog({ super.key, - this.onDeleteKeychain, + this.onRemoveKeychainConfirmed, }); @override @@ -138,7 +138,7 @@ class _DeleteKeychainDialogState extends State { Future _onRemoveKeychainTap() async { if (_textEditingController.text == context.l10n.deleteKeychainDialogRemovingPhrase) { - widget.onDeleteKeychain?.call(); + widget.onRemoveKeychainConfirmed?.call(); } else { setState(() { _errorText = context.l10n.deleteKeychainDialogErrorText;