refactor: arrow syntax everywhere

This commit is contained in:
EETagent 2022-12-04 00:48:38 +01:00
parent e1a67bbdea
commit a55d2e2ff8
3 changed files with 3 additions and 3 deletions

View file

@ -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 };
}

View file

@ -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);

View file

@ -40,7 +40,7 @@
submit();
}
async function submit() {
const submit = async () => {
try {
await apiLogin({ applicationId, password: codeValueMobile });
goto('/dashboard');