mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fix
This commit is contained in:
parent
a5126aff4a
commit
4dfba4839d
2 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
// @flow
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { Icon } from '$components/panels/Icon';
|
import { Icon } from '$components/panels/Icon';
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ export const checkUserToken = (
|
||||||
routes: (result.data.routes && result.data.routes.length > 0 && arrayToObject(result.data.routes, '_id')) || {},
|
routes: (result.data.routes && result.data.routes.length > 0 && arrayToObject(result.data.routes, '_id')) || {},
|
||||||
})).catch(() => null);
|
})).catch(() => null);
|
||||||
|
|
||||||
export const getGuestToken = ():AxiosPromise<any> => axios.get(API.GET_GUEST).then(result => (result && result.data));
|
export const getGuestToken = ():AxiosPromise<IUser> => axios.get(API.GET_GUEST).then(result => (result && result.data));
|
||||||
|
|
||||||
export const getStoredMap = (
|
export const getStoredMap = (
|
||||||
{ name }: { name: IRootState['address'] }
|
{ name }: { name: IRootState['address'] }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue