Skip to content

Commit

Permalink
Hide promo and cards behind welcome screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroolivo authored and lvaccaro committed Jan 28, 2025
1 parent 2c8f553 commit 47df428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gaios/Wallet/WalletViewController/WalletViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class WalletViewModel {
}

func reloadPromoCards() async {
promoCardCellModel = PromoManager.shared.promoCellModels(.walletOverview)
promoCardCellModel = subaccounts.count == 0 ? [] : PromoManager.shared.promoCellModels(.walletOverview)
}

func reloadAlertCards() async {
Expand Down Expand Up @@ -222,7 +222,7 @@ class WalletViewModel {
expiredSubaccounts = expired
cards.append(.reEnable2fa)
}
self.alertCardCellModel = cards.map { AlertCardCellModel(type: $0) }
self.alertCardCellModel = subaccounts.count == 0 ? [] : cards.map { AlertCardCellModel(type: $0) }
}

func reEnable2faViewModel() -> ReEnable2faViewModel {
Expand Down

0 comments on commit 47df428

Please sign in to comment.