From d6ff99bc59fe2ae6af2241214b602d668de212f6 Mon Sep 17 00:00:00 2001 From: sevichecc <91365763+Sevichecc@users.noreply.github.com> Date: Sun, 16 Apr 2023 12:13:17 +0800 Subject: [PATCH] perf: let toast show earlier --- src/simple-status.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simple-status.tsx b/src/simple-status.tsx index 9630819..c52f1dd 100644 --- a/src/simple-status.tsx +++ b/src/simple-status.tsx @@ -81,9 +81,9 @@ export default function SimpleCommand(props: CommandProps) { if (scheduled_at) { showToast(Toast.Style.Success, "Scheduled", labelText(scheduled_at)); } else { + showToast(Toast.Style.Success, "Status has been published (≧∇≦)/ ! "); cache.set("latest_published_status", JSON.stringify(response)); setOpenActionText("View the status in Browser"); - showToast(Toast.Style.Success, "Status has been published (≧∇≦)/ ! "); } setStatusInfo(response) setCw("");