diff --git a/clive/__private/ui/operations/operation_summary/cancel_transfer_from_savings.py b/clive/__private/ui/operations/operation_summary/cancel_transfer_from_savings.py index 260779e56..e5596d36b 100644 --- a/clive/__private/ui/operations/operation_summary/cancel_transfer_from_savings.py +++ b/clive/__private/ui/operations/operation_summary/cancel_transfer_from_savings.py @@ -16,8 +16,6 @@ class CancelTransferFromSavings(OperationSummary): BIG_TITLE: ClassVar[str] = "Cancel transfer" - ALLOW_THE_SAME_OPERATION_IN_CART_MULTIPLE_TIMES: ClassVar[bool] = False - def __init__(self, transfer: SavingsWithdrawals) -> None: super().__init__() self._transfer = transfer diff --git a/clive/__private/ui/operations/operation_summary/operation_summary.py b/clive/__private/ui/operations/operation_summary/operation_summary.py index d0ba5446f..323d96a3c 100644 --- a/clive/__private/ui/operations/operation_summary/operation_summary.py +++ b/clive/__private/ui/operations/operation_summary/operation_summary.py @@ -26,6 +26,8 @@ class OperationSummary(OperationBaseScreen, OperationActionBindings, AbstractCla BIG_TITLE: ClassVar[str] = "Operation summary" + ALLOW_THE_SAME_OPERATION_IN_CART_MULTIPLE_TIMES = False + def create_left_panel(self) -> ComposeResult: yield BigTitle(self.BIG_TITLE) with ScrollableContainer(), Body(): diff --git a/clive/__private/ui/operations/savings_operations/savings_operations.py b/clive/__private/ui/operations/savings_operations/savings_operations.py index d341c26ae..6f7a1d7e4 100644 --- a/clive/__private/ui/operations/savings_operations/savings_operations.py +++ b/clive/__private/ui/operations/savings_operations/savings_operations.py @@ -28,7 +28,6 @@ from clive.exceptions import RequestIdError from clive.models import Asset from schemas.operations import ( - CancelTransferFromSavingsOperation, TransferFromSavingsOperation, TransferToSavingsOperation, ) @@ -132,12 +131,6 @@ def __realized_on(self) -> str: @on(Button.Pressed, "#delete-transfer-button") def move_to_cancel_transfer(self) -> None: - if ( - CancelTransferFromSavingsOperation(from_=self.__transfer.from_, request_id=self.__transfer.request_id) - in self.app.world.profile_data.cart - ): - self.notify("The operation is already in the cart!", severity="error") - return self.app.push_screen(CancelTransferFromSavings(self.__transfer))