Skip to content

Commit

Permalink
fix(console): add null check for user in sign and broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Aug 13, 2024
1 parent feb9f40 commit fd46bd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const WalletProvider = ({ children }) => {
let txResult: TxOutput;

try {
if (user.id && managedWallet) {
if (!!user?.id && managedWallet) {
const mainMessage = msgs.find(msg => msg.typeUrl in MESSAGE_STATES);

if (mainMessage) {
Expand Down

0 comments on commit fd46bd8

Please sign in to comment.