Code cleanup
This commit is contained in:
parent
5c9854dc00
commit
011ebf0733
|
@ -92,6 +92,7 @@ fun ZashiBigIconButton(
|
|||
shadowElevation = shadowElevation
|
||||
) {
|
||||
Column(
|
||||
modifier = backgroundModifier,
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.Center
|
||||
) {
|
||||
|
|
|
@ -78,7 +78,7 @@ class OnZip321ScannedUseCase(
|
|||
)
|
||||
)
|
||||
navigationRouter.replace(Send(), ReviewTransaction)
|
||||
} catch (e: TransactionProposalNotCreatedException) {
|
||||
} catch (_: TransactionProposalNotCreatedException) {
|
||||
prefillSend.requestFromZip321(zip321.payment)
|
||||
navigationRouter.replace(Send())
|
||||
zashiProposalRepository.clear()
|
||||
|
@ -119,7 +119,7 @@ class OnZip321ScannedUseCase(
|
|||
)
|
||||
)
|
||||
navigationRouter.forward(ReviewTransaction)
|
||||
} catch (e: TransactionProposalNotCreatedException) {
|
||||
} catch (_: TransactionProposalNotCreatedException) {
|
||||
prefillSend.requestFromZip321(zip321.payment)
|
||||
navigationRouter.back()
|
||||
zashiProposalRepository.clear()
|
||||
|
|
|
@ -157,6 +157,7 @@ private fun NavButtons(
|
|||
}
|
||||
}
|
||||
|
||||
@Suppress("MagicNumber")
|
||||
fun Modifier.minHeight106Percent(): Modifier =
|
||||
layout { measurable, constraints ->
|
||||
val placeable = measurable.measure(constraints)
|
||||
|
|
Loading…
Reference in New Issue