Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Oct 11, 2024

gonna stash this and start again

Comment on lines +61 to +64
// @ts-ignore - this is a test
litActionIpfsCid: args.litActionIpfsCid ?
undefined :
args.litActionIpfsCid,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition for litActionIpfsCid is inverted. To correctly pass the IPFS CID when provided, consider changing this to:

litActionIpfsCid: args.litActionIpfsCid ? args.litActionIpfsCid : undefined,

This ensures that when args.litActionIpfsCid is truthy, it's passed as-is, and when falsy, it's set to undefined.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

@Ansonhkg Ansonhkg closed this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants