Fakultas Ilmu Komputer UI

Commit 44338025 authored by Muhammad Fairuzi Teguh's avatar Muhammad Fairuzi Teguh
Browse files

Merge branch 'warmfix-sprint4-fairuzi' into 'staging'

[REFACTOR] fix gatsby build failure

See merge request !106
parents 890cd3a6 7d4dd927
Pipeline #48686 passed with stages
in 1 minute and 40 seconds
......@@ -15,7 +15,7 @@ class JadwalDonorTest(TestCase):
kecamatan="Beji", location='Fasilkom', time_start=datetime.fromisoformat(time_start),
time_end=datetime.fromisoformat(time_end), quota=150, category=JadwalDonor.Category.PUBLIC
)
self.assertEqual(str(jadwal_donor), f"Fasilkom, 2020-03-02 (07:08:00 - 10:08:00)")
self.assertEqual(str(jadwal_donor), "Fasilkom, 2020-03-02 (07:08:00 - 10:08:00)")
def test_create_jadwal_donor_start_greater_than_end_fail(self):
time_start = '2020-03-02T10:08:00+07:00'
......
......@@ -9,7 +9,7 @@ LOCALE = 'id_ID'
BLOOD_LETTERS = ('A', 'B', 'O', 'AB')
RHESUS = '+-'
BLOOD_TYPES = list(l + r for l, r in itertools.product(BLOOD_LETTERS, RHESUS))
BLOOD_TYPES = list(m + r for m, r in itertools.product(BLOOD_LETTERS, RHESUS))
class ProfileFactory(factory.Factory):
......
......@@ -4,6 +4,7 @@ from django.dispatch import receiver
from .models import Profile
@receiver(post_save, sender=settings.AUTH_USER_MODEL,
dispatch_uid='profile_save_on_create_user_signal')
def profile_save_on_create_user_save(sender, instance, **kwargs):
......
......@@ -21,7 +21,7 @@ export const AuthenticatedOrRedirect = ({
const { user } = useAuth()
if (user) return <Component {...otherProps} />
else {
navigate(redirectPath)
if (typeof window !== "undefined") navigate(redirectPath)
return null
}
}
......
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