diff --git a/lib/features/family/features/topup/screens/topup_initial_bottom_sheet.dart b/lib/features/family/features/topup/screens/topup_initial_bottom_sheet.dart index 1eb0d0c02..8bf84f0b9 100644 --- a/lib/features/family/features/topup/screens/topup_initial_bottom_sheet.dart +++ b/lib/features/family/features/topup/screens/topup_initial_bottom_sheet.dart @@ -39,7 +39,7 @@ class _TopupInitialBottomSheetState extends State { ).currencySymbol; return FunBottomSheet( - title: 'Top up ${user.possessiveName} wallet', + title: 'Top up ${currentProfile.possessiveName} wallet', icon: primaryCircleWithIcon( circleSize: 140, iconData: FontAwesomeIcons.plus, diff --git a/lib/features/family/features/topup/screens/topup_loading_bottom_sheet.dart b/lib/features/family/features/topup/screens/topup_loading_bottom_sheet.dart index c2bf6206b..e1e511f8e 100644 --- a/lib/features/family/features/topup/screens/topup_loading_bottom_sheet.dart +++ b/lib/features/family/features/topup/screens/topup_loading_bottom_sheet.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:givt_app/features/auth/cubit/auth_cubit.dart'; +import 'package:givt_app/features/family/features/profiles/cubit/profiles_cubit.dart'; import 'package:givt_app/features/family/shared/design/components/components.dart'; import 'package:givt_app/features/family/shared/widgets/loading/custom_progress_indicator.dart'; import 'package:givt_app/features/family/shared/widgets/texts/shared_texts.dart'; @@ -10,10 +10,10 @@ class TopupLoadingBottomSheet extends StatelessWidget { @override Widget build(BuildContext context) { - final user = context.read().state.user; + final currentProfile = context.read().state.activeProfile; return FunBottomSheet( - title: 'Top up ${user.possessiveName} wallet', + title: 'Top up ${currentProfile.possessiveName} wallet', icon: const CustomCircularProgressIndicator(), content: const Column( children: [