Skip to content

Commit d68951e

Browse files
committed
ensure registrations that are not immediately accepted do not cause an exception to be thrown from global action listener
1 parent ebeb22f commit d68951e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ export async function createServer() {
790790
? {
791791
...action,
792792
status: ActionStatus.Accepted,
793-
...(actionType === ActionType.REGISTER
793+
...(actionType === ActionType.REGISTER && response.source
794794
? {
795795
registrationNumber: (
796796
response.source as { registrationNumber: string }

0 commit comments

Comments
 (0)