Skip to content

Commit

Permalink
Bad Custom Field indexing hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
GleammerRay committed May 20, 2022
1 parent d7c2e17 commit 944692b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/screens/edit_password_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,12 @@ class _EditPasswordScreen extends State<EditPasswordScreen> {
title: 'password',
isNew: _isNew,
onSave: () {
for (int i = 0; i != _customFields.length; i++) {
if (_customFields[i].value == '') _customFields.removeAt(i);
int _removed = 0;
for (int i = 0; i < _customFields.length - _removed; i++) {
if (_customFields[i].value == '') {
_customFields.removeAt(i);
_removed++;
}
}
Password _passwordArgs = Password(
key: _key,
Expand Down

0 comments on commit 944692b

Please sign in to comment.