lib/bandwidth_tn_order.rb 🔗
@@ -46,7 +46,7 @@ class BandwidthTNOrder
end
def error_description
- @order[:error_list]&.dig(:error, :description)
+ [@order[:error_list]].flatten.first&.dig(:error, :description)
end
def poll
root21 created
lib/bandwidth_tn_order.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -46,7 +46,7 @@ class BandwidthTNOrder
end
def error_description
- @order[:error_list]&.dig(:error, :description)
+ [@order[:error_list]].flatten.first&.dig(:error, :description)
end
def poll