diff --git a/p2p_wallet/Scenes/Main/WalletDetail/New/AccountDetailsViewModel.swift b/p2p_wallet/Scenes/Main/WalletDetail/New/AccountDetailsViewModel.swift index d7d461ebd2..60b4311d47 100644 --- a/p2p_wallet/Scenes/Main/WalletDetail/New/AccountDetailsViewModel.swift +++ b/p2p_wallet/Scenes/Main/WalletDetail/New/AccountDetailsViewModel.swift @@ -121,9 +121,14 @@ class AccountDetailsViewModel: BaseViewModel, ObservableObject { extension AccountDetailsViewModel { /// Check swap action is available for this account (wallet). - static func isSwapAvailableFor(wallet: SolanaAccount, for status: JupiterDataStatus) -> Bool { + static func isSwapAvailableFor(wallet _: SolanaAccount, for status: JupiterDataStatus) -> Bool { // TODO(jupiter): Dynamic fetching data in future. - true + switch status { + case .ready: + return true + default: + return false + } } }