Skip to content

Commit 6a5363e

Browse files
committed
fix: prevent updating plan without coupon on apply credits page
1 parent ea5dc1f commit 6a5363e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/(console)/apply-credit/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
handleSubmit();
397397
}
398398
}}
399-
disabled={$isSubmitting}>
399+
disabled={!couponData?.code || $isSubmitting}>
400400
{#if $isSubmitting}
401401
<span class="loader is-small is-transparent u-line-height-1-5" aria-hidden="true"
402402
></span>

0 commit comments

Comments
 (0)