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