diff --git a/svelte/src/admin_panel/Subscriptions.svelte b/svelte/src/admin_panel/Subscriptions.svelte index bc9619b..ccc1161 100644 --- a/svelte/src/admin_panel/Subscriptions.svelte +++ b/svelte/src/admin_panel/Subscriptions.svelte @@ -24,7 +24,7 @@ let credit_form = { }, { name: "credit", label: "Credit", - type: "number", + type: "decimal", default_value: 0, }, ], diff --git a/svelte/src/util/Form.svelte b/svelte/src/util/Form.svelte index fb23c86..e479461 100644 --- a/svelte/src/util/Form.svelte +++ b/svelte/src/util/Form.svelte @@ -162,6 +162,14 @@ let handle_errors = (response) => { value="{field.default_value}" type="number" class="form_input"/> + {:else if field.type === "decimal"} + {:else if field.type === "username"}