+6
-1
src/views/identity/plc-applicator/steps/step1_handle-input.tsx
+6
-1
src/views/identity/plc-applicator/steps/step1_handle-input.tsx
···
16
16
17
17
import { type PlcInformation, PlcApplicatorConstraints } from '../page';
18
18
import { getPlcKeying } from '../plc-utils';
19
+
import { XRPCError } from '@atcute/client';
19
20
20
21
type Method = 'pds' | 'key';
21
22
···
68
69
onError(error) {
69
70
let message: string | undefined;
70
71
71
-
if (error instanceof DidIsNotPlcError) {
72
+
if (error instanceof XRPCError) {
73
+
if (error.kind === 'InvalidRequest' && error.message.includes('resolve handle')) {
74
+
message = `Can't seem to resolve handle, is it typed correctly?`;
75
+
}
76
+
} else if (error instanceof DidIsNotPlcError) {
72
77
message = error.message;
73
78
}
74
79