```purchaseFlowStore .getOrders() ...
# android
o
Copy code
purchaseFlowStore
            .getOrders()
            .viewModelSubscription({ orders ->
                val existingOrder = orders.firstOrNull { it.listingId == listingId }
                if (existingOrder != null) {
                    emitCommand(CloseScreenCommand)
                 }
            }, {
                logger.debug("$it")
            })