add fix for donate is_active condition during create donat
This commit is contained in:
parent
2f01c1e500
commit
d302522256
@ -165,7 +165,7 @@ func (donatService *ServiceDonat) CreateTestDonat(
|
||||
|
||||
widgetID := donatService.defaultWidgetID
|
||||
for _, widget := range widgets {
|
||||
if amount >= widget.MinAmount && amount <= widget.MaxAmount {
|
||||
if amount >= widget.MinAmount && amount <= widget.MaxAmount && widget.IsActive == true {
|
||||
widgetID = widget.ID
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user