We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 676956e commit 8f95687Copy full SHA for 8f95687
src/core/Action.ts
@@ -74,8 +74,8 @@ export default class Action<
74
const status = message.status as GoalStatus;
75
76
// Check status code instead of result field to properly handle STATUS_CANCELED
77
- if (status === GoalStatus.STATUS_SUCCEEDED) {
78
- resultCallback(message.values as TResult);
+ if (status === GoalStatus.STATUS_SUCCEEDED && message.result) {
+ resultCallback(message.values);
79
} else {
80
const baseError =
81
typeof message.values === "string" ? message.values : "";
0 commit comments