upd: ganti link api
This commit is contained in:
@@ -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')
|
||||
}}
|
||||
/>
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user