diff --git a/webview-ui/src/components/chat/checkpoints/CheckpointMenu.tsx b/webview-ui/src/components/chat/checkpoints/CheckpointMenu.tsx
index c4e2f63c15..aaeb5a43ff 100644
--- a/webview-ui/src/components/chat/checkpoints/CheckpointMenu.tsx
+++ b/webview-ui/src/components/chat/checkpoints/CheckpointMenu.tsx
@@ -101,46 +101,44 @@ export const CheckpointMenu = ({
-
- {!isConfirming ? (
+ {!isConfirming ? (
+
+ ) : (
+ <>
- ) : (
- <>
-
-
- >
- )}
- {isConfirming ? (
-
- {t("chat:checkpoint.menu.cannotUndo")}
-
- ) : (
-
- {t("chat:checkpoint.menu.restoreFilesAndTaskDescription")}
-
- )}
-
+
+ >
+ )}
+ {isConfirming ? (
+
+ {t("chat:checkpoint.menu.cannotUndo")}
+
+ ) : (
+
+ {t("chat:checkpoint.menu.restoreFilesAndTaskDescription")}
+
+ )}
>
)}