Skip to content

Commit

Permalink
solve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejo committed Jan 4, 2025
1 parent fdf7bab commit 99625db
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,19 @@ class WooShippingLabelPackageCreationViewModel @Inject constructor(
?.fold(
onSuccess = {
triggerEvent(ShowLoadingDialog(false))
triggerEvent(PackageSelected(customPackage.toPackageData()))
triggerEvent(
PackageSelected(customPackage.toPackageData(dimensionUnit = storeOptions.dimensionUnit))
)
},
onFailure = {
triggerEvent(ShowLoadingDialog(false))
triggerEvent(ShowTemplateCreationErrorDialog)
}
) ?: triggerEvent(PackageSelected(customPackage.toPackageData()))
) ?: triggerEvent(
PackageSelected(
customPackage.toPackageData(dimensionUnit = storeOptions.dimensionUnit)
)
)
}
}

Expand Down

0 comments on commit 99625db

Please sign in to comment.