diff --git a/sdk/src/commonMain/kotlin/io/timemates/sdk/common/internal/ResultExt.kt b/sdk/src/commonMain/kotlin/io/timemates/sdk/common/internal/ResultExt.kt index 70ffb52..d20e263 100644 --- a/sdk/src/commonMain/kotlin/io/timemates/sdk/common/internal/ResultExt.kt +++ b/sdk/src/commonMain/kotlin/io/timemates/sdk/common/internal/ResultExt.kt @@ -22,7 +22,7 @@ internal fun Result>.flatten(): Result { if(value.isSuccess) { Result.success(value.getOrThrow()) } else { - Result.failure(exceptionOrThrow()) + Result.failure(value.exceptionOrThrow()) } } }