upd: ganti link api

This commit is contained in:
2025-07-18 11:17:42 +08:00
parent 6c36abb8b9
commit f9064fb9c3
2 changed files with 2 additions and 5 deletions

View File

@@ -138,11 +138,9 @@ export default function EditEventCalendar() {
}
async function handleUpdate() {
console.log('update')
try {
const hasil = await decryptToken(String(token?.current))
const response = await apiUpdateCalendar({ data: { ...data, user: hasil }, id: idCalendar })
console.log(response)
if (response.success) {
router.replace(`/division/${id}/calendar/`)
ToastAndroid.show('Berhasil mengubah acara', ToastAndroid.SHORT)
@@ -169,7 +167,6 @@ export default function EditEventCalendar() {
category="update-calendar"
onPress={() => {
handleUpdate()
// console.log('klik')
}}
/>
}}