Skip to content

Commit

Permalink
Response handler doesn't handle errors properly (#1188)
Browse files Browse the repository at this point in the history
* fix handle 404
Closes #1067
  • Loading branch information
Cheshiriks authored Sep 8, 2022
1 parent 936f595 commit a1d595f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ val requestModalHandler: FC<RequestModalProps> = FC { props ->
status = response.status,
)
404.toShort() -> ErrorModalState(
isErrorModalOpen = false,
isErrorModalOpen = !redirectToFallbackView,
errorMessage = "${response.status} ${response.statusText}",
errorLabel = response.status.toString(),
status = response.status,
Expand Down

0 comments on commit a1d595f

Please sign in to comment.