diff --git a/pages/infoperusahaan/index.jsx b/pages/infoperusahaan/index.jsx index 6df5dbc8276cdb672634df6aa8b8091f52af88d6..97351f631bc03b9393601132f102d0c0cb2e5172 100644 --- a/pages/infoperusahaan/index.jsx +++ b/pages/infoperusahaan/index.jsx @@ -66,8 +66,8 @@ export default function InformasiPerusahaan({ propertyWebsite }) { useEffect(() => { const token = window.localStorage.getItem("token") if (token === undefined || token === null) { - window.location.replace("/") - return; + window.location.replace("/auth/login") + return } fetch("https://rpl-backend-production.up.railway.app/v1/property").then(async (response) => { const responsejson = await response.json() diff --git a/pages/kelasmengemudi/edit/[id].jsx b/pages/kelasmengemudi/edit/[id].jsx index b17ba269da8bf3e5c1a379a95b3b54faa31f0eff..1de64af340d22c3f131f73b1c5093c7802c02f1d 100644 --- a/pages/kelasmengemudi/edit/[id].jsx +++ b/pages/kelasmengemudi/edit/[id].jsx @@ -22,10 +22,8 @@ const Edit = () => { const body = JSON.stringify({ namaKelas, hargaKelas, - jenisKendaraan, jumlahSesi, - platNomorKendaraan, - namaKendaraan + platNomorKendaraan }) const updateQuery = await fetch("https://rpl-backend-production.up.railway.app/v1/kelasmengemudi/update/" + router.query.id, { method: "PATCH",