[mob][photos] Use better variable name

This commit is contained in:
ashilkn
2025-01-24 20:27:03 +05:30
parent 5ec4998f13
commit fe9682823f
2 changed files with 5 additions and 5 deletions

View File

@@ -28,10 +28,10 @@ import "package:photos/utils/share_util.dart";
class LinkEmailScreen extends StatefulWidget {
final String? personID;
final bool isFromSaveEditPerson;
final bool isFromSaveOrEditPerson;
const LinkEmailScreen(
this.personID, {
this.isFromSaveEditPerson = false,
this.isFromSaveOrEditPerson = false,
super.key,
});
@@ -204,7 +204,7 @@ class _LinkEmailScreen extends State<LinkEmailScreen> {
onTap: () async {
final newEmail =
_emailIsValid ? _newEmail : _selectedEmail!;
if (widget.isFromSaveEditPerson) {
if (widget.isFromSaveOrEditPerson) {
await _emailHoldsEnteAccount(newEmail).then((value) {
if (value) {
Navigator.of(context).pop(newEmail);

View File

@@ -849,7 +849,7 @@ class _EmailSectionState extends State<_EmailSection> {
context,
LinkEmailScreen(
widget.personID,
isFromSaveEditPerson: true,
isFromSaveOrEditPerson: true,
),
);
if (newEmail != null) {
@@ -876,7 +876,7 @@ class _EmailSectionState extends State<_EmailSection> {
context,
LinkEmailScreen(
widget.personID,
isFromSaveEditPerson: true,
isFromSaveOrEditPerson: true,
),
);
if (newEmail != null) {