Skip to content

Conversation

@rossiam
Copy link
Collaborator

@rossiam rossiam commented Mar 13, 2025

Fixed a bug where entering the number 0 in a prompt for an optional integer was treating it as if nothing were entered.

@rossiam rossiam requested a review from a team March 13, 2025 15:44
@changeset-bot
Copy link

changeset-bot bot commented Mar 13, 2025

🦋 Changeset detected

Latest commit: 93ae964

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@smartthings/cli-lib Patch
@smartthings/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

...options,
validate: options?.validate ? allowEmptyFn(options.validate) : undefined,
}
return await promptForInteger(message, updatedOptions) || undefined
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What the heck was I even thinking when I added this??? 🤦

@rossiam rossiam merged commit b2392f7 into SmartThingsCommunity:main Mar 13, 2025
4 checks passed
@rossiam rossiam deleted the optional-integer-can-be-0 branch March 13, 2025 18:04
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