fix(auth): add mounted check for tags

This commit is contained in:
Prateek Sunal 2024-05-04 16:10:43 +05:30
parent 45eda72966
commit 68f0a1d259

View file

@ -63,7 +63,9 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
Future<void> _loadTags() async {
allTags = await CodeDisplayStore.instance.getAllTags();
setState(() {});
if (mounted) {
setState(() {});
}
}
@override