Skip to content

Commit 7fd19a7

Browse files
Update bittensor_cli/src/commands/stake/claim.py
Co-authored-by: Roman <[email protected]>
1 parent 1f43e5d commit 7fd19a7

File tree

1 file changed

+3
-3
lines changed
  • bittensor_cli/src/commands/stake

1 file changed

+3
-3
lines changed

bittensor_cli/src/commands/stake/claim.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ async def set_claim_type(
8282
if claim_type is not None:
8383
new_type = claim_type
8484
else:
85-
new_type = Prompt.ask(
86-
"Select new root claim type", choices=["Swap", "Keep"], default=current_type
87-
)
85+
new_type = claim_type if claim_type else Prompt.ask(
86+
"Select new root claim type", choices=["Swap", "Keep"], default=current_type
87+
)
8888
if new_type == current_type:
8989
msg = f"Root claim type is already set to '{current_type}'. No change needed."
9090
console.print(f"[yellow]{msg}[/yellow]")

0 commit comments

Comments
 (0)