Update +page.svelte

This commit is contained in:
Face 2025-05-30 17:03:20 +03:00
parent e167dd79d7
commit 7c640b2a76

View file

@ -59,10 +59,10 @@
}
}
let isFormValid = $derived(code.trim() && rewardAmount.trim());
let isFormValid = $derived(code.trim() && rewardAmount);
async function createPromoCode() {
if (!code.trim() || !rewardAmount.trim()) return;
if (!code.trim() || !rewardAmount) return;
isCreating = true;
hasCreateResult = false;