CS
This commit is contained in:
parent
fe82b69997
commit
3287b9a3b7
10 changed files with 813 additions and 813 deletions
|
@ -64,7 +64,7 @@ export default function SettingsScreen() {
|
|||
|
||||
// Handle
|
||||
const handleSave = (inputValues: Record<string, string>) => {
|
||||
let postData: any = {token: token};
|
||||
let postData: any = { token: token };
|
||||
|
||||
if (inputValues.name) {
|
||||
postData[ 'name' ] = inputValues.name;
|
||||
|
@ -80,7 +80,7 @@ export default function SettingsScreen() {
|
|||
|
||||
Request.post( 'sessions/update', postData )
|
||||
.then( (response) => {
|
||||
console.log('save', response);
|
||||
console.log( 'save', response );
|
||||
|
||||
if (response.success) {
|
||||
setSessionData( response.session );
|
||||
|
@ -90,9 +90,9 @@ export default function SettingsScreen() {
|
|||
Message.error( response.message );
|
||||
}
|
||||
} )
|
||||
.catch((error) => {
|
||||
console.log('error', error);
|
||||
})
|
||||
.catch( (error) => {
|
||||
console.log( 'error', error );
|
||||
} )
|
||||
};
|
||||
|
||||
const logout = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue