diff --git a/tool/actions-plan-preview/main.go b/tool/actions-plan-preview/main.go
index f5f3fd7401..0bf0ecdcc3 100644
--- a/tool/actions-plan-preview/main.go
+++ b/tool/actions-plan-preview/main.go
@@ -154,7 +154,7 @@ func main() {
 		return
 	}
 
-	if comment.IsMinimized {
+	if bool(comment.IsMinimized) {
 		log.Printf("Previous plan-preview comment has already minimized. So don't minimize anything\n")
 		return
 	}