Spaces:
Running
Running
fix billing settings
Browse files
src/lib/assets/favicon.svg
ADDED
|
|
src/lib/components/billing/BillingManagementModal.svelte
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
|
| 8 |
let { open = $bindable(false) }: { open: boolean } = $props();
|
| 9 |
|
| 10 |
-
let billingOption = $
|
| 11 |
const planColors = {
|
| 12 |
team: 'bg-purple-500/10 text-purple-600',
|
| 13 |
enterprise: 'bg-green-500/10 text-green-600'
|
|
@@ -29,7 +29,6 @@
|
|
| 29 |
|
| 30 |
function resetSettings() {
|
| 31 |
billingOption = authState.user?.billingOption || 'personal';
|
| 32 |
-
open = false;
|
| 33 |
}
|
| 34 |
</script>
|
| 35 |
|
|
|
|
| 7 |
|
| 8 |
let { open = $bindable(false) }: { open: boolean } = $props();
|
| 9 |
|
| 10 |
+
let billingOption = $derived(authState.user?.billingOption || 'personal');
|
| 11 |
const planColors = {
|
| 12 |
team: 'bg-purple-500/10 text-purple-600',
|
| 13 |
enterprise: 'bg-green-500/10 text-green-600'
|
|
|
|
| 29 |
|
| 30 |
function resetSettings() {
|
| 31 |
billingOption = authState.user?.billingOption || 'personal';
|
|
|
|
| 32 |
}
|
| 33 |
</script>
|
| 34 |
|