fix: reset error

This commit is contained in:
EETagent 2023-01-03 14:58:24 +01:00
parent bd075c8d5f
commit 095f354fe1

View file

@ -26,6 +26,7 @@
try {
login = await apiCreateCandidate(data);
dispatch('created');
error = '';
} catch (e: unknown) {
console.error(e);
error = (e as ApiError).msg;