Skip to content

Commit

Permalink
core: fix check of data sent to card
Browse files Browse the repository at this point in the history
  • Loading branch information
jjanku committed May 12, 2024
1 parent 5f4b003 commit b7b07ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meesign_core/lib/src/data/task_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ abstract class TaskRepository<T> {
// TODO: rollback if we fail to deliver the update
bool forCard = res.recipient == Recipient.Card;
if (forCard) {
if (res.data.length == 1) throw StateException();
if (res.data.length != 1) throw StateException();
} else {
try {
await _taskSource.update(did, task.id, res.data, task.attempt);
Expand Down

0 comments on commit b7b07ff

Please sign in to comment.