Improved error code check on short URL deletion

This commit is contained in:
Alejandro Celaya
2022-01-25 19:51:08 +01:00
parent 6e72c343ab
commit c8b530cc1a
3 changed files with 3 additions and 3 deletions

View File

@@ -7,4 +7,4 @@ export const isInvalidArgumentError = (error?: ProblemDetailsError): error is In
error?.type === 'INVALID_ARGUMENT';
export const isInvalidDeletionError = (error?: ProblemDetailsError): error is InvalidShortUrlDeletion =>
error?.type === 'INVALID_SHORTCODE_DELETION';
error?.type === 'INVALID_SHORTCODE_DELETION' || error?.type === 'INVALID_SHORT_URL_DELETION';