diff options
author | Sebastian <sebasjm@gmail.com> | 2023-04-21 10:49:02 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-04-21 10:49:02 -0300 |
commit | 7fe5f3767ea256fc9ebe4b5ef3f79d4c168a331f (patch) | |
tree | 3caffb5ae69e0f3e4e91abded795010020242fae /packages/demobank-ui/src/components/Transactions/state.ts | |
parent | f470f167e32d8f7775ad994f09afb1d353b0b300 (diff) | |
download | wallet-core-7fe5f3767ea256fc9ebe4b5ef3f79d4c168a331f.tar.xz |
integrate to the web util testing api
Diffstat (limited to 'packages/demobank-ui/src/components/Transactions/state.ts')
-rw-r--r-- | packages/demobank-ui/src/components/Transactions/state.ts | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/packages/demobank-ui/src/components/Transactions/state.ts b/packages/demobank-ui/src/components/Transactions/state.ts index 198ef6c5f..4f99ed678 100644 --- a/packages/demobank-ui/src/components/Transactions/state.ts +++ b/packages/demobank-ui/src/components/Transactions/state.ts @@ -32,44 +32,6 @@ export function useComponentState({ account }: Props): State { error: result, }; } - // if (error) { - // switch (error.status) { - // case 404: - // return { - // status: "loading-error", - // error: { - // hasError: true, - // operational: false, - // message: `Transactions page ${pageNumber} was not found.`, - // }, - // }; - // case 401: - // return { - // status: "loading-error", - // error: { - // hasError: true, - // operational: false, - // message: "Wrong credentials given.", - // }, - // }; - // default: - // return { - // status: "loading-error", - // error: { - // hasError: true, - // operational: false, - // message: `Transaction page ${pageNumber} could not be retrieved.`, - // } as any, - // }; - // } - // } - - // if (!data) { - // return { - // status: "loading", - // error: undefined, - // }; - // } const transactions = result.data.transactions .map((item: unknown) => { |