From 0807af8908c03f94d99d312ec8dd2b5adb24a355 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 20 Jun 2022 14:22:00 +0300 Subject: [PATCH] Remove password for React change --- lib/ui/dashboard/dashboard_screen.dart | 31 ++++++++++++-------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/lib/ui/dashboard/dashboard_screen.dart b/lib/ui/dashboard/dashboard_screen.dart index 440b90c7c..ba62705d8 100644 --- a/lib/ui/dashboard/dashboard_screen.dart +++ b/lib/ui/dashboard/dashboard_screen.dart @@ -245,23 +245,20 @@ class _DashboardScreenState extends State final data = serializers.serializeWith( AccountEntity.serializer, account); - passwordCallback( - context: context, - callback: (password, idToken) async { - store.dispatch(StartSaving()); - WebClient() - .put(url, credentials.token, - data: json.encode(data), - password: password, - idToken: idToken) - .then((dynamic _) { - store.dispatch(StopSaving()); - WebUtils.reloadBrowser(); - }).catchError((Object error) { - store.dispatch(StopSaving()); - showErrorDialog(context: context, message: error); - }); - }); + store.dispatch(StartSaving()); + WebClient() + .put( + url, + credentials.token, + data: json.encode(data), + ) + .then((dynamic _) { + store.dispatch(StopSaving()); + WebUtils.reloadBrowser(); + }).catchError((Object error) { + store.dispatch(StopSaving()); + showErrorDialog(context: context, message: error); + }); }, icon: Icon(MdiIcons.react), ),