mirror of
https://github.com/apotdevin/thunderhub.git
synced 2024-11-19 09:50:03 +01:00
fix: ๐ remove null pointer
This commit is contained in:
parent
bd7606a5ca
commit
9039868dc7
@ -61,7 +61,7 @@ export const chatResolvers = {
|
||||
message: customRecords.message,
|
||||
});
|
||||
|
||||
const [{ signed_by }, error] = await toWithError(
|
||||
const [verified, error] = await toWithError(
|
||||
verifyMessage({
|
||||
lnd,
|
||||
message: messageToVerify,
|
||||
@ -72,7 +72,7 @@ export const chatResolvers = {
|
||||
logger.debug(`Error verifying message: ${messageToVerify}`);
|
||||
}
|
||||
|
||||
if (signed_by === customRecords.sender && !error) {
|
||||
if (!error && verified?.signed_by === customRecords.sender) {
|
||||
isVerified = true;
|
||||
}
|
||||
}
|
||||
|
Loadingโฆ
Reference in New Issue
Block a user