From 9c04b209926f3d7b2837d1f0ad70c5a3d0624b97 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 8 Nov 2024 09:23:53 +0700 Subject: [PATCH] fix: wrong variable name --- src/stores/notification/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/stores/notification/index.ts b/src/stores/notification/index.ts index 5aa43fe5..a1b2593c 100644 --- a/src/stores/notification/index.ts +++ b/src/stores/notification/index.ts @@ -33,9 +33,12 @@ export const useNotification = defineStore('noti-store', () => { return res.data; } - async function updateNotification(paymentId: string, payload: Notification) { + async function updateNotification( + notificationId: string, + payload: Notification, + ) { const res = await api.put( - `/notification/${paymentId}`, + `/notification/${notificationId}`, payload, ); if (res.status >= 400) return null;