aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/components/Transactions/state.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/components/Transactions/state.ts')
-rw-r--r--packages/demobank-ui/src/components/Transactions/state.ts38
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) => {