mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-06 00:01:41 +00:00
fix: reset error
This commit is contained in:
parent
bd075c8d5f
commit
095f354fe1
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
||||||
try {
|
try {
|
||||||
login = await apiCreateCandidate(data);
|
login = await apiCreateCandidate(data);
|
||||||
dispatch('created');
|
dispatch('created');
|
||||||
|
error = '';
|
||||||
} catch (e: unknown) {
|
} catch (e: unknown) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
error = (e as ApiError).msg;
|
error = (e as ApiError).msg;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue