fix credential and credential.id usage

This commit is contained in:
Adam Velebil 2022-03-04 16:54:07 +01:00
parent d2b97dc4e1
commit fb77b4fe09
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084

View File

@ -189,10 +189,10 @@ class _AndroidCredentialListNotifier extends OathCredentialListNotifier {
try {
String response;
if (issuer != null) {
response = await _api.renameAccountWithIssuer(
credential.id.toString(), name, issuer);
response =
await _api.renameAccountWithIssuer(credential.id, name, issuer);
} else {
response = await _api.renameAccount(credential.toString(), name);
response = await _api.renameAccount(credential.id, name);
}
var responseJson = jsonDecode(response);