@@ -245,21 +214,9 @@ function PairingForm({ authorityUrl, generation, access, onChanged }: MicPrismPa
className="space-y-3"
onSubmit={(event) => {
event.preventDefault();
- void run(
- completeMicPrismPairing({
- ...input,
- challengeId: challenge.challengeId,
- signature: signature.trim(),
- }),
- (instance) => {
- setPaired(instance);
- setChallenge(null);
- setSignature("");
- setNotice(
- "Host paired. Select it below when you are ready to change the shared connection.",
- );
- },
- );
+ void controller.complete(signature.trim()).then((completed) => {
+ if (completed && isCurrent()) setSignature("");
+ });
}}
>