Skip to content

Commit

Permalink
remove 'update pledge' from manage pledge menu (#2109)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottkicks authored Jul 31, 2024
1 parent 2002b2d commit 6481d14
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Library/ViewModels/ManagePledgeViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,15 @@ private func actionSheetMenuOptionsFor(
return [.contactCreator]
}

return ManagePledgeAlertAction.allCases.filter { $0 != .viewRewards }
let actions: [ManagePledgeAlertAction]

// TODO: Remove 'update pledge' from ManagePledgeAlertAction after feature rollout.
if featureNoShippingAtCheckout() {
actions = ManagePledgeAlertAction.allCases.filter { $0 != .viewRewards && $0 != .updatePledge }
} else {
actions = ManagePledgeAlertAction.allCases.filter { $0 != .viewRewards }
}
return actions
}

private func navigationBarTitle(
Expand Down

0 comments on commit 6481d14

Please sign in to comment.