Skip to content

Commit fbaeef3

Browse files
committed
fix(rivetkit): decode bridge errors with actor: null
1 parent 0eb8f51 commit fbaeef3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rivetkit-typescript/packages/rivetkit/src/actor

rivetkit-typescript/packages/rivetkit/src/actor/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export function decodeBridgeRivetErrorPayload(
237237
if (!isRivetErrorLike(payload)) {
238238
return undefined;
239239
}
240-
if (payload.actor !== undefined && !isActorSpecifier(payload.actor)) {
240+
if (payload.actor !== undefined && payload.actor !== null && !isActorSpecifier(payload.actor)) {
241241
return undefined;
242242
}
243243

0 commit comments

Comments
 (0)