diff --git a/flutter/ios/Classes/SentryFlutter.swift b/flutter/ios/Classes/SentryFlutter.swift index 7d480930cc..3f77fad598 100644 --- a/flutter/ios/Classes/SentryFlutter.swift +++ b/flutter/ios/Classes/SentryFlutter.swift @@ -109,7 +109,7 @@ public final class SentryFlutter { if let replayOptions = data["replay"] as? [String: Any] { options.experimental.sessionReplay.sessionSampleRate = (replayOptions["sessionSampleRate"] as? NSNumber)?.floatValue ?? 0 - options.experimental.sessionReplay.errorSampleRate = + options.experimental.sessionReplay.onErrorSampleRate = (replayOptions["errorSampleRate"] as? NSNumber)?.floatValue ?? 0 } #endif