fix: Reset description and subject fields after submitting feedback

This commit is contained in:
Andras Bacsai
2024-10-03 23:27:23 +02:00
parent f26d2e1d0b
commit 65aeebd9fa

View File

@@ -61,6 +61,7 @@ class Help extends Component
send_user_an_email($mail, auth()->user()?->email, 'hi@coollabs.io');
}
$this->dispatch('success', 'Feedback sent.', 'We will get in touch with you as soon as possible.');
$this->reset('description', 'subject');
} catch (\Throwable $e) {
return handleError($e, $this);
}