* 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:
21 files changed
+87
-85
No files matched your search
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user