diff --git a/pallets/genetic-analysis-orders/src/types.rs b/pallets/genetic-analysis-orders/src/types.rs index bd3b13da..60baa9b7 100644 --- a/pallets/genetic-analysis-orders/src/types.rs +++ b/pallets/genetic-analysis-orders/src/types.rs @@ -126,7 +126,9 @@ 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