chore: 🔧 parse channel times to seconds

This commit is contained in:
AP 2020-05-21 07:11:24 +02:00
parent 4c74ed1536
commit 66a35fed92
2 changed files with 3 additions and 0 deletions

View file

@ -70,6 +70,8 @@ export const getChannels = {
return {
...channel,
time_offline: channel.time_offline / 1000,
time_online: channel.time_online / 1000,
partner_node_info: {
...nodeInfo,
},

View file

@ -15,6 +15,7 @@ export const Channels = () => {
const { loading, data } = useGetChannelsQuery({
skip: !auth,
variables: { auth },
errorPolicy: 'all',
onError: error => toast.error(getErrorContent(error)),
});