diff --git a/src/components/Settings/Tabs/NotificationSettingTab.jsx b/src/components/Settings/Tabs/NotificationSettingTab.jsx
index dfd98f1..81c386d 100644
--- a/src/components/Settings/Tabs/NotificationSettingTab.jsx
+++ b/src/components/Settings/Tabs/NotificationSettingTab.jsx
@@ -26,7 +26,7 @@ export default function NotificationSettingTab() {
setAccSettings(prev => {
let newAccSettings = prev.data.map(data => {
if(data.uid == item.uid){
- let newPrefValue = data.pref_value == null || data.pref_value == false ? true : false
+ let newPrefValue = data.pref_value == null || data.pref_value == '0' ? '100' : '0'
return {...data, pref_value: newPrefValue}
}else{
return data
@@ -40,7 +40,7 @@ export default function NotificationSettingTab() {
setNotificationChange({loading: true, uid: item.uid})
let reqData = { // API PAYLOADS
pref_id: item.pref_id,
- status: '100'
+ status: item.pref_value == null || item.pref_value == 0 ? 100 : 0
}
api.setAccSettings(reqData).then(res => {
if(res.status != 200 || res.data.internal_return < 0){
@@ -94,7 +94,7 @@ export default function NotificationSettingTab() {
:
{} : () => handleNotificationChange(item)}
// value={updateNotification}
// handler={() => setUpdateNotification(!updateNotification)}