mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +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;
|
||||
}
|
||||
|
||||
export function errorHandler(error: AxiosError, msg: string): ApiError {
|
||||
export const errorHandler = (error: AxiosError, msg: string): ApiError => {
|
||||
return { error, msg };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export interface SubmissionProgress {
|
|||
}
|
||||
export const submissionProgress = writable<SubmissionProgress>({});
|
||||
|
||||
export async function fetchSubmProgress() {
|
||||
export const fetchSubmProgress = async () => {
|
||||
try {
|
||||
const prog = await apiFetchSubmissionProgress();
|
||||
submissionProgress.set(prog);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
submit();
|
||||
}
|
||||
|
||||
async function submit() {
|
||||
const submit = async () => {
|
||||
try {
|
||||
await apiLogin({ applicationId, password: codeValueMobile });
|
||||
goto('/dashboard');
|
||||
|
|
|
|||
Loading…
Reference in a new issue