From 6e0e04b8576e1523595fa52a741aa5f6d1126682 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Tue, 4 Feb 2025 20:20:51 +0100 Subject: [PATCH] ui fix --- src/lib/components/PriceAlert.svelte | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/components/PriceAlert.svelte b/src/lib/components/PriceAlert.svelte index 1c3bd841..80628139 100644 --- a/src/lib/components/PriceAlert.svelte +++ b/src/lib/components/PriceAlert.svelte @@ -35,6 +35,12 @@ }; // Make the POST request to the endpoint + + toast.success(`Successfully created price alert`, { + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", + }); + const response = await fetch("/api/create-price-alert", { method: "POST", headers: { @@ -46,11 +52,6 @@ $newPriceAlertData = await response?.json(); //const output = await response.json(); - - toast.success(`Successfully created price alert`, { - style: - "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", - }); targetPrice = currentPrice; } }