We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e9ceb0 commit d72ceacCopy full SHA for d72ceac
1 file changed
apps/flipcash/features/withdrawal/src/main/kotlin/com/flipcash/app/withdrawal/WithdrawalViewModel.kt
@@ -380,8 +380,8 @@ internal class WithdrawalViewModel @Inject constructor(
380
amount = amount,
381
fee = fee,
382
destination = resolvedDestination,
383
- // only provide the destination account if we are dealing with an owner account (unresolved)
384
- destinationOwner = rawDestination.takeIf { !withdrawalChecks.hasResolvedDestination },
+ // only provide the destination account if we are dealing with an owner account
+ destinationOwner = rawDestination.takeUnless { withdrawalChecks.kind == WithdrawalAvailability.Kind.TokenAccount },
385
owner = owner,
386
)
387
}.onResult(
0 commit comments