### What problem does this PR solve? change language Issue link: #245 - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -84,7 +84,7 @@ export const useSaveSetting = () => {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const saveSetting = useCallback(
|
||||
(userInfo: { new_password: string } | IUserInfo): number => {
|
||||
(userInfo: { new_password: string } | Partial<IUserInfo>): number => {
|
||||
return dispatch<any>({ type: 'settingModel/setting', payload: userInfo });
|
||||
},
|
||||
[dispatch],
|
||||
|
||||
Reference in New Issue
Block a user