diff --git a/ios/ContractConstants.swift b/ios/ContractConstants.swift index 766b2cb..4fbf1b3 100644 --- a/ios/ContractConstants.swift +++ b/ios/ContractConstants.swift @@ -8,6 +8,7 @@ extension VideoEditorReactNative { static let errLicenseRevoked = "ERR_SDK_LICENSE_REVOKED" static let errMissingHost = "ERR_MISSING_HOST" static let errMissingExportResult = "ERR_MISSING_EXPORT_RESULT" + static let errVideoExportCancel = "ERR_VIDEO_EXPORT_CANCEL" static let inputParamToken = "token" static let inputParamFeaturesConfig = "featuresConfig" diff --git a/ios/VideoEditorModule.swift b/ios/VideoEditorModule.swift index 873e1f5..1623f4c 100644 --- a/ios/VideoEditorModule.swift +++ b/ios/VideoEditorModule.swift @@ -391,7 +391,7 @@ extension VideoEditorModule: BanubaVideoEditorDelegate { self.videoEditorSDK?.clearSessionData() } self.videoEditorSDK = nil - self.currentReject?(VideoEditorReactNative.errMissingExportResult, VideoEditorReactNative.errMessageVideoExportCancel, nil) + self.currentReject?(VideoEditorReactNative.errVideoExportCancel, VideoEditorReactNative.errMessageVideoExportCancel, nil) } }