Skip to content

Commit cec84c4

Browse files
Remove incorrect and not needed validation that onChangeMicrobitName is called for bluetooth flow only here (#569)
1 parent ea913d9 commit cec84c4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/connection-stage-actions.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ export class ConnectionStageActions {
170170
};
171171

172172
onChangeMicrobitName = (name: string) => {
173-
if (this.stage.connType !== "bluetooth") {
174-
throw new Error("Microbit name can only be set for bluetooth flow");
175-
}
176173
this.setStage({
177174
...this.stage,
178175
connType: "bluetooth",

0 commit comments

Comments
 (0)