mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-26 21:41:50 +00:00
refactor: arrow syntax everywhere
This commit is contained in:
parent
e1a67bbdea
commit
a55d2e2ff8
3 changed files with 3 additions and 3 deletions
|
|
@ -9,6 +9,6 @@ export interface ApiError {
|
||||||
msg: string;
|
msg: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function errorHandler(error: AxiosError, msg: string): ApiError {
|
export const errorHandler = (error: AxiosError, msg: string): ApiError => {
|
||||||
return { error, msg };
|
return { error, msg };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export interface SubmissionProgress {
|
||||||
}
|
}
|
||||||
export const submissionProgress = writable<SubmissionProgress>({});
|
export const submissionProgress = writable<SubmissionProgress>({});
|
||||||
|
|
||||||
export async function fetchSubmProgress() {
|
export const fetchSubmProgress = async () => {
|
||||||
try {
|
try {
|
||||||
const prog = await apiFetchSubmissionProgress();
|
const prog = await apiFetchSubmissionProgress();
|
||||||
submissionProgress.set(prog);
|
submissionProgress.set(prog);
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
submit();
|
submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function submit() {
|
const submit = async () => {
|
||||||
try {
|
try {
|
||||||
await apiLogin({ applicationId, password: codeValueMobile });
|
await apiLogin({ applicationId, password: codeValueMobile });
|
||||||
goto('/dashboard');
|
goto('/dashboard');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue