@bytezhang/ledger-adapter 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1051,10 +1051,12 @@ function deviceActionToPromise(action, onInteraction) {
|
|
|
1051
1051
|
if (settled) return;
|
|
1052
1052
|
if (state.status === "completed") {
|
|
1053
1053
|
settled = true;
|
|
1054
|
+
onInteraction?.("interaction-complete");
|
|
1054
1055
|
sub?.unsubscribe();
|
|
1055
1056
|
resolve(state.output);
|
|
1056
1057
|
} else if (state.status === "error") {
|
|
1057
1058
|
settled = true;
|
|
1059
|
+
onInteraction?.("interaction-complete");
|
|
1058
1060
|
sub?.unsubscribe();
|
|
1059
1061
|
reject(state.error);
|
|
1060
1062
|
} else if (state.status === "pending" && onInteraction) {
|