diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Cex/CexDeposit/CexDepositViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Cex/CexDeposit/CexDepositViewController.swift index acc9150e95..9a270f78ff 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Cex/CexDeposit/CexDepositViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Cex/CexDeposit/CexDepositViewController.swift @@ -220,6 +220,8 @@ extension CexDepositViewController: SectionsDataSource { } if let memo { + let isLast = itemCount == mainRows.count + 1 + mainRows.append( CellBuilderNew.row( rootElement: .hStack([ @@ -236,7 +238,7 @@ extension CexDepositViewController: SectionsDataSource { id: "memo", height: .heightCell48, bind: { cell in - cell.set(backgroundStyle: .lawrence, isLast: itemCount == mainRows.count + 1) + cell.set(backgroundStyle: .lawrence, isLast: isLast) } ) )