(err: any)
| 126 | }; |
| 127 | |
| 128 | const getErrorStack = (err: any) => { |
| 129 | if ('error' in err) { |
| 130 | return err.error?.stack; |
| 131 | } |
| 132 | |
| 133 | return err?.stack; |
| 134 | }; |
| 135 | |
| 136 | const errorMessage = getErrorMessage(error); |
| 137 | const logoutFetcher = useLogoutFetcher(); |