Skip to content

Commit

Permalink
fix comparing amount
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed May 23, 2024
1 parent 32a3cbe commit 084c315
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/io/github/opendonationassistant/reel/Reel.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.github.opendonationassistant.reel;

import com.fasterxml.uuid.Generators;
import io.github.opendonationassistant.Beans;
import io.micronaut.data.annotation.Transient;
import java.util.List;
import java.util.Objects;
Expand Down Expand Up @@ -51,7 +50,7 @@ public void handlePayment(CompletedPaymentNotification payment) {
}
if (
EACH_PAYMENT_CONDITION.equals(getCondition()) &&
payment.getAmount().getMajor() > getRequiredAmount().getMajor()
payment.getAmount().getMajor() >= getRequiredAmount().getMajor()
) {
var command = new ReelCommand();
command.setType("trigger");
Expand All @@ -62,6 +61,9 @@ public void handlePayment(CompletedPaymentNotification payment) {
}
}

public void select(List<String> items){
}

public void update(WidgetConfig config) {
config
.getProperties()
Expand Down

0 comments on commit 084c315

Please sign in to comment.