We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fbd8f0 commit d2009fbCopy full SHA for d2009fb
src/app/pages/error/error.component.ts
@@ -16,7 +16,7 @@ import { animations } from './error.animations'
16
export class ErrorComponent {
17
public code$: Observable<StatusCodes> = this.route.queryParams.pipe(
18
takeUntilDestroyed(),
19
- map<Params, StatusCodes>(params => parseInt(params?.code as string, 10)),
+ map<Params, StatusCodes>(params => parseInt((params?.code ?? '404') as string, 10)),
20
filter(code => !isNaN(code)),
21
take(1),
22
)
0 commit comments