@suportepos/split-checkout 0.3.5 → 0.3.6
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.es.js
CHANGED
|
@@ -21861,19 +21861,19 @@ function SplitCheckoutForm({
|
|
|
21861
21861
|
onResponse?.(result);
|
|
21862
21862
|
} catch (err) {
|
|
21863
21863
|
console.error("Erro chamando backend:", err);
|
|
21864
|
-
onResponse?.({
|
|
21864
|
+
onResponse?.({ sucesso: false, mensagem: "Erro ao comunicar backend" });
|
|
21865
21865
|
} finally {
|
|
21866
21866
|
setLoading(false);
|
|
21867
21867
|
}
|
|
21868
21868
|
},
|
|
21869
21869
|
onError: (err) => {
|
|
21870
21870
|
console.error("Erro SOP:", err);
|
|
21871
|
-
onResponse?.({
|
|
21871
|
+
onResponse?.({ sucesso: false, mensagem: "Erro SOP" });
|
|
21872
21872
|
setLoading(false);
|
|
21873
21873
|
},
|
|
21874
21874
|
onInvalid: (fields) => {
|
|
21875
21875
|
console.warn("Campos inválidos:", fields);
|
|
21876
|
-
onResponse?.({
|
|
21876
|
+
onResponse?.({ sucesso: false, mensagem: "Campos inválidos" });
|
|
21877
21877
|
setLoading(false);
|
|
21878
21878
|
}
|
|
21879
21879
|
};
|