Fakultas Ilmu Komputer UI

Commit 1af6fc61 authored by Nabila Febri Viola's avatar Nabila Febri Viola
Browse files

[CHORES] Fix eslint and flake8

parent 01bf3008
Pipeline #48926 passed with stages
in 2 minutes and 40 seconds
......@@ -2,7 +2,6 @@ import datetime
from unittest.mock import patch
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from django.utils import timezone
from django.utils.timezone import localtime
from rest_framework import status
......
......@@ -25,7 +25,7 @@ const ModalEventDonorSubmission = ({ show, handleClose }) => {
validationSchema: EventSubmissionSchema,
})
const onSubmit = async (data) => {
const onSubmit = async data => {
const tanggal_donor = moment(data.tanggal_donor).format("YYYY-MM-DD")
const jam_mulai = moment(data.jam_mulai).format("HH:mm")
const jam_selesai = moment(data.jam_selesai).format("HH:mm")
......@@ -36,7 +36,7 @@ const ModalEventDonorSubmission = ({ show, handleClose }) => {
delete data["jam_selesai"]
const formData = new FormData()
Object.keys(data).forEach((key) => {
Object.keys(data).forEach(key => {
if (typeof data[key] != "undefined") formData.append(key, data[key])
})
......@@ -45,7 +45,7 @@ const ModalEventDonorSubmission = ({ show, handleClose }) => {
window.alert("Pengajuan acara donor telah disimpan.")
handleClose()
})
.catch((error) => {
.catch(error => {
if (error.response) {
window.alert(JSON.stringify(error.response.data))
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment