File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
components/molecules/adminManagement Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { observer } from 'mobx-react-lite' ;
2
2
import React from 'react' ;
3
- import Axios from 'axios'
4
3
import DialogWithHeader from '../DialogWithHeader' ;
5
4
import { useTranslation } from 'react-i18next' ;
6
5
import { makeStyles } from '@material-ui/core/styles' ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export const fetchUserInfo = async function (): Promise<IAnywayUserDetails> {
59
59
export const removeUsersCall = async ( email :string ) => {
60
60
61
61
try {
62
- const request = await axios . post ( 'https://www.anyway.co.il/user/delete_user' , { email} )
62
+ await axios . post ( 'https://www.anyway.co.il/user/delete_user' , { email} )
63
63
}
64
64
catch ( e ) {
65
65
console . log ( e ) ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export default class UserStore {
78
78
async removeUser ( email :string ) {
79
79
try {
80
80
await removeUsersCall ( email )
81
- if ( this . usersInfoList !== null && this . usersInfoList . length > 1 ) {
81
+ if ( this . usersInfoList !== null && this . usersInfoList . length >= 1 ) {
82
82
this . usersInfoList = this . usersInfoList . filter ( p => {
83
83
return p . email !== email
84
84
} )
You can’t perform that action at this time.
0 commit comments