Remove password for React change

This commit is contained in:
Hillel Coren 2022-06-20 14:22:00 +03:00
parent 266db2eecb
commit 0807af8908
1 changed files with 14 additions and 17 deletions

View File

@ -245,15 +245,13 @@ class _DashboardScreenState extends State<DashboardScreen>
final data = serializers.serializeWith(
AccountEntity.serializer, account);
passwordCallback(
context: context,
callback: (password, idToken) async {
store.dispatch(StartSaving());
WebClient()
.put(url, credentials.token,
.put(
url,
credentials.token,
data: json.encode(data),
password: password,
idToken: idToken)
)
.then((dynamic _) {
store.dispatch(StopSaving());
WebUtils.reloadBrowser();
@ -261,7 +259,6 @@ class _DashboardScreenState extends State<DashboardScreen>
store.dispatch(StopSaving());
showErrorDialog(context: context, message: error);
});
});
},
icon: Icon(MdiIcons.react),
),