@wise/dynamic-flow-client 3.28.8-experimental-2b1f107 → 3.28.8-experimental-4d66e42

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/build/main.js CHANGED
@@ -13609,7 +13609,14 @@ function useDynamicFlowCore(props) {
13609
13609
  const onBack = (action) => {
13610
13610
  if (action) {
13611
13611
  return () => {
13612
- void onAction(__spreadProps(__spreadValues({}, action), { skipValidation: true }));
13612
+ onAction(__spreadProps(__spreadValues({}, action), { skipValidation: true })).then(() => {
13613
+ setStepStack((value) => {
13614
+ const newStepStack = [...value.slice(0, -2), ...value.slice(-1)];
13615
+ stepComponentRef.current = newStepStack[newStepStack.length - 1];
13616
+ return newStepStack;
13617
+ });
13618
+ }).catch(() => {
13619
+ });
13613
13620
  };
13614
13621
  }
13615
13622
  if (nativeBack) {