Skip to content

Commit

Permalink
Release 2.0.90
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Jan 29, 2024
1 parent f0fe92a commit e7c454b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/api/ledfx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const Ledfx = async (
response = await api.get(path)
break
}
// console.log('1:', response);
if (response.data && response.data.payload) {
setState(
produce((state: IStore) => {
Expand All @@ -52,12 +51,10 @@ export const Ledfx = async (
}
})
)
// console.log('2:', response);
if (response.data.status) {
return response.data
}
}
// console.log('3:', response);
if (response.payload) {
setState(
produce((state: IStore) => {
Expand All @@ -75,17 +72,14 @@ export const Ledfx = async (
return response.data
}
}
// console.log('4:', response);
if (response.status === 200) {
// console.log('4eyyy:', response);
setState(
produce((state: IStore) => {
state.disconnected = false
})
)
return response.data || response
}
// console.log('5:', response);
return setState(
produce((state: IStore) => {
state.ui.snackbar = {
Expand Down

0 comments on commit e7c454b

Please sign in to comment.