diff --git a/pallets/genetic-analysis-orders/src/types.rs b/pallets/genetic-analysis-orders/src/types.rs index bd3b13da..f0cf3f07 100644 --- a/pallets/genetic-analysis-orders/src/types.rs +++ b/pallets/genetic-analysis-orders/src/types.rs @@ -126,7 +126,7 @@ where } pub fn can_refunded(self) -> Option { - if self.status == GeneticAnalysisOrderStatus::Paid { + if (self.status == GeneticAnalysisOrderStatus::Paid || self.status == GeneticAnalysisOrderStatus::Failed) { Some(self) } else { None