Skip to content

Commit d72ceac

Browse files
committed
fix(flipcash/withdrawal): correct inclusion of destinationOwner for submitIntent
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 5e9ceb0 commit d72ceac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/flipcash/features/withdrawal/src/main/kotlin/com/flipcash/app/withdrawal/WithdrawalViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ internal class WithdrawalViewModel @Inject constructor(
380380
amount = amount,
381381
fee = fee,
382382
destination = resolvedDestination,
383-
// only provide the destination account if we are dealing with an owner account (unresolved)
384-
destinationOwner = rawDestination.takeIf { !withdrawalChecks.hasResolvedDestination },
383+
// only provide the destination account if we are dealing with an owner account
384+
destinationOwner = rawDestination.takeUnless { withdrawalChecks.kind == WithdrawalAvailability.Kind.TokenAccount },
385385
owner = owner,
386386
)
387387
}.onResult(

0 commit comments

Comments
 (0)