fix: correctly display error messages (#1653)

pull/1672/head^2
TheCatLady 4 years ago committed by GitHub
parent e6d5f0abfe
commit 31cb7176d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,8 +40,8 @@ const Error: NextPage<ErrorProps> = ({ statusCode }) => {
<div className="text-4xl"> <div className="text-4xl">
{statusCode {statusCode
? intl.formatMessage(messages.errormessagewithcode, { ? intl.formatMessage(messages.errormessagewithcode, {
statusCode: statusCode, statusCode,
message: getErrorMessage(statusCode), error: getErrorMessage(statusCode),
}) })
: getErrorMessage(statusCode)} : getErrorMessage(statusCode)}
</div> </div>

Loading…
Cancel
Save