We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e12e5b commit aef0bddCopy full SHA for aef0bdd
1 file changed
pages/setting/index.tsx
@@ -77,7 +77,6 @@ function Setting(): React.ReactElement {
77
if (!isBtnAtv) {
78
return;
79
}
80
-
81
let data = null;
82
if (!isEmpty) {
83
data = await updateUserInfo(
@@ -98,7 +97,7 @@ function Setting(): React.ReactElement {
98
97
99
if (data) {
100
history.back();
101
- setUserData(userInfo);
+ setUserData(data.data);
102
103
};
104
0 commit comments