From b81e4171bb8febd257f665329d0a5f5840a41f75 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Sat, 17 Dec 2022 13:11:15 +0530 Subject: [PATCH] fix compile --- StatusPage/src/Utils/Login.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/StatusPage/src/Utils/Login.ts b/StatusPage/src/Utils/Login.ts index 4880717c28..e04a13fd2b 100644 --- a/StatusPage/src/Utils/Login.ts +++ b/StatusPage/src/Utils/Login.ts @@ -6,10 +6,11 @@ import Name from 'Common/Types/Name'; import { DASHBOARD_URL } from 'CommonUI/src/Config'; import { JSONObject } from 'Common/Types/JSON'; import User from 'Model/Models/User'; +import JSONFunctions from 'Common/Types/JSONFunctions'; export default abstract class LoginUtil { public static login(value: JSONObject): void { - const user: User = User.fromJSON( + const user: User = JSONFunctions.fromJSON( value['user'] as JSONObject, User ) as User;