@saasquatch/mint-components 1.14.3-2 → 1.14.3-4

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.
@@ -888,7 +888,7 @@ const BankingInfoFormView = (props) => {
888
888
  index.h("sl-icon", { name: "info-circle" })),
889
889
  text.modalTitle),
890
890
  index.h("p", null, text.modalDescription),
891
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onSubmit }, text.modalButtonText)),
891
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true }, text.modalButtonText)),
892
892
  index.h("div", { class: classes.TextContainer },
893
893
  index.h("div", null,
894
894
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
@@ -1230,6 +1230,7 @@ function useBankingInfoForm(props) {
1230
1230
  }
1231
1231
  let token = undefined;
1232
1232
  if (isPartner) {
1233
+ setShowModal(false);
1233
1234
  setShowVerification(true);
1234
1235
  token = await new Promise((res) => {
1235
1236
  const cb = (e) => {
@@ -242,7 +242,7 @@ export const BankingInfoFormView = (props) => {
242
242
  h("sl-icon", { name: "info-circle" })),
243
243
  text.modalTitle),
244
244
  h("p", null, text.modalDescription),
245
- h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onSubmit }, text.modalButtonText)),
245
+ h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true }, text.modalButtonText)),
246
246
  h("div", { class: classes.TextContainer },
247
247
  h("div", null,
248
248
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -282,6 +282,7 @@ export function useBankingInfoForm(props) {
282
282
  }
283
283
  let token = undefined;
284
284
  if (isPartner) {
285
+ setShowModal(false);
285
286
  setShowVerification(true);
286
287
  token = await new Promise((res) => {
287
288
  const cb = (e) => {
@@ -884,7 +884,7 @@ const BankingInfoFormView = (props) => {
884
884
  h("sl-icon", { name: "info-circle" })),
885
885
  text.modalTitle),
886
886
  h("p", null, text.modalDescription),
887
- h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onSubmit }, text.modalButtonText)),
887
+ h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true }, text.modalButtonText)),
888
888
  h("div", { class: classes.TextContainer },
889
889
  h("div", null,
890
890
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -1226,6 +1226,7 @@ function useBankingInfoForm(props) {
1226
1226
  }
1227
1227
  let token = undefined;
1228
1228
  if (isPartner) {
1229
+ setShowModal(false);
1229
1230
  setShowVerification(true);
1230
1231
  token = await new Promise((res) => {
1231
1232
  const cb = (e) => {