diff --git a/src/qml/Pages/SignIn.qml b/src/qml/Pages/SignIn.qml index 3fb72209..52920994 100644 --- a/src/qml/Pages/SignIn.qml +++ b/src/qml/Pages/SignIn.qml @@ -44,14 +44,16 @@ HPage { button.loading = false py.callCoro( - "saved_accounts." + - (rememberAccount.checked ? "add": "delete"), - [data] + rememberAccount.checked ? + "saved_accounts.add": "saved_accounts.delete", + + [userId] ) pageLoader.showPage( - "AccountSettings/AccountSettings", {userId: data} + "AccountSettings/AccountSettings", {userId} ) + }, type => { if (type === "CancelledError") return