Update +page.svelte
This commit is contained in:
parent
e167dd79d7
commit
7c640b2a76
1 changed files with 2 additions and 2 deletions
|
|
@ -59,10 +59,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let isFormValid = $derived(code.trim() && rewardAmount.trim());
|
let isFormValid = $derived(code.trim() && rewardAmount);
|
||||||
|
|
||||||
async function createPromoCode() {
|
async function createPromoCode() {
|
||||||
if (!code.trim() || !rewardAmount.trim()) return;
|
if (!code.trim() || !rewardAmount) return;
|
||||||
|
|
||||||
isCreating = true;
|
isCreating = true;
|
||||||
hasCreateResult = false;
|
hasCreateResult = false;
|
||||||
|
|
|
||||||
Reference in a new issue