lib/sportradar/api/soccer/match.rb in sportradar-api-0.13.14 vs lib/sportradar/api/soccer/match.rb in sportradar-api-0.13.15

- old
+ new

@@ -167,10 +167,10 @@ def match_seconds return nil unless @match_time mm, ss = @match_time.split(':').map(&:to_i) time = mm * 60 + ss - if @match_time == '45:00' || @match_time == '90:00' # stoppage time + if @stoppage_time && (@match_time == '45:00' || @match_time == '90:00') # stoppage time mm, ss = @stoppage_time.split(':').map(&:to_i) stop_time = mm * 60 + ss time += stop_time end time