From 60c835301d151f346028a35950081d4f72e247d3 Mon Sep 17 00:00:00 2001 From: Fringg Date: Mon, 4 May 2026 17:41:21 +0300 Subject: [PATCH] fix: move reissue button to standalone block outside device_limit guard The reissue button was inside the Additional Options card which is gated by device_limit !== 0, so it was hidden when device_limit was 0. Move it to its own card block with independent visibility condition. --- src/pages/Subscription.tsx | 98 +++++++++++++++++++++----------------- 1 file changed, 55 insertions(+), 43 deletions(-) diff --git a/src/pages/Subscription.tsx b/src/pages/Subscription.tsx index 2c4c22a..9fafe73 100644 --- a/src/pages/Subscription.tsx +++ b/src/pages/Subscription.tsx @@ -2292,53 +2292,65 @@ export default function Subscription() { )} )} + + )} - {/* Reissue Subscription */} -
- - {revokeMutation.error && ( -

{getErrorMessage(revokeMutation.error)}

- )} -
+
+ {revokeMutation.isPending ? ( +
+ ) : ( + + + + )} +
+
+ + {revokeMutation.error && ( +

{getErrorMessage(revokeMutation.error)}

+ )} )}