Linting fixes round #1 (#2906)

* Fixes round #1

* disabled any warning for intentional typing of AsyncReturnType

* Whacked MetaMask add / remove button

* types, not great, not terrible, better than any

* Fixed typo in CheckboxField and wrapped description in <label>

* Feedback

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: zomars <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-06-06 18:24:37 +00:00
1 parent 547b40913f
commit ba04533de3
21 files changed
+87 -85

No files matched your search

+8 -1
View File
@@ -581,11 +581,18 @@ const loggedInViewerRouter = createProtectedRouter()
});
if (web3Credential) {
return ctx.prisma.credential.delete({
const deleted = await ctx.prisma.credential.delete({
where: {
id: web3Credential.id,
},
});
return {
...deleted,
key: {
...(deleted.key as JSONObject),
isWeb3Active: false,
},
};
} else {
return ctx.prisma.credential.create({
data: {