Fixed compilation error

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2020-01-05 01:19:46 +01:00
parent b2f9e98ec1
commit d484c3a721
No known key found for this signature in database
GPG Key ID: B143FF27EF555D16

View File

@ -50,7 +50,7 @@ export default class Error extends Component<Props, {}> {
)
}
public getInitialProps({ res, err }: NextPageContext) {
public static getInitialProps({ res, err }: NextPageContext) {
const statusCode = res ? res.statusCode : err ? err.statusCode : 404
return { statusCode }
}