Skip to content

Commit

Permalink
update sets comparison
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frolov <[email protected]>
  • Loading branch information
PolyProgrammist and frol authored May 15, 2024
1 parent d74fe92 commit 3b71c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ impl Contract {

let mut edit_proposal_promise: Option<Promise> = None;

if !old_labels_set.eq(&new_labels_set.clone()) {
if old_labels_set != new_labels_set {
for proposal_id in self.get_rfp_linked_proposals(id) {
edit_proposal_promise = Some(self.update_proposal_labels(proposal_id, new_labels_set.clone()));
}
Expand Down

0 comments on commit 3b71c5b

Please sign in to comment.