fix: status change

This commit is contained in:
Kentai Radiquum 2024-09-20 11:46:37 +05:00
parent 8e34ff4a7d
commit 6f1e48983a
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 6 additions and 6 deletions

View file

@ -78,7 +78,7 @@ export const ProfileEditPrivacyModal = (props: {
<div className="flex items-center"> <div className="flex items-center">
<input <input
disabled={loading} disabled={loading}
onClick={(e) => _setPrivacySetting(e)} onChange={(e) => _setPrivacySetting(e)}
checked={props.privacySettings[props.setting] == 0} checked={props.privacySettings[props.setting] == 0}
id="default-radio-1" id="default-radio-1"
type="radio" type="radio"
@ -96,7 +96,7 @@ export const ProfileEditPrivacyModal = (props: {
<div className="flex items-center"> <div className="flex items-center">
<input <input
disabled={loading} disabled={loading}
onClick={(e) => _setPrivacySetting(e)} onChange={(e) => _setPrivacySetting(e)}
checked={props.privacySettings[props.setting] == 1} checked={props.privacySettings[props.setting] == 1}
id="default-radio-2" id="default-radio-2"
type="radio" type="radio"
@ -117,7 +117,7 @@ export const ProfileEditPrivacyModal = (props: {
<div className="flex items-center"> <div className="flex items-center">
<input <input
disabled={loading} disabled={loading}
onClick={(e) => _setPrivacySetting(e)} onChange={(e) => _setPrivacySetting(e)}
checked={props.privacySettings[props.setting] == 0} checked={props.privacySettings[props.setting] == 0}
id="default-radio-1" id="default-radio-1"
type="radio" type="radio"
@ -135,7 +135,7 @@ export const ProfileEditPrivacyModal = (props: {
<div className="flex items-center"> <div className="flex items-center">
<input <input
disabled={loading} disabled={loading}
onClick={(e) => _setPrivacySetting(e)} onChange={(e) => _setPrivacySetting(e)}
checked={props.privacySettings[props.setting] == 1} checked={props.privacySettings[props.setting] == 1}
id="default-radio-2" id="default-radio-2"
type="radio" type="radio"
@ -153,7 +153,7 @@ export const ProfileEditPrivacyModal = (props: {
<div className="flex items-center"> <div className="flex items-center">
<input <input
disabled={loading} disabled={loading}
onClick={(e) => _setPrivacySetting(e)} onChange={(e) => _setPrivacySetting(e)}
checked={props.privacySettings[props.setting] == 2} checked={props.privacySettings[props.setting] == 2}
id="default-radio-3" id="default-radio-3"
type="radio" type="radio"

View file

@ -27,7 +27,7 @@ export const ProfileEditStatusModal = (props: {
function _setStatusSetting() { function _setStatusSetting() {
setLoading(true); setLoading(true);
fetch(ENDPOINTS.user.settings.statusEdit, { fetch(`${ENDPOINTS.user.settings.statusEdit}?token=${props.token}`, {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",