More test cleanup
This commit is contained in:
parent
d80e95c1eb
commit
6197066352
3 changed files with 4 additions and 8 deletions
|
@ -1,7 +1,3 @@
|
|||
function formatDate(date, format) {
|
||||
export default function formatDate(date, format) {
|
||||
return window.moment(date).format(format);
|
||||
}
|
||||
|
||||
export {
|
||||
formatDate
|
||||
};
|
||||
|
|
|
@ -4,6 +4,6 @@ export default function parseBase64(token) {
|
|||
tokenData = atob(token.split('.')[1]);
|
||||
return JSON.parse(tokenData);
|
||||
} catch (e) {
|
||||
return tokenData;
|
||||
return token;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue