@infosoftas/s4-orders-js-sdk 0.1.4 → 0.1.5
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/package.json
CHANGED
|
@@ -99,12 +99,14 @@ const useOrderForm = ({
|
|
|
99
99
|
// TODO: "recievesInvoice" should be deleted in the future
|
|
100
100
|
const receivesInvoice = invoiceResponse?.receivesInvoice || invoiceResponse?.recievesInvoice;
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
if (invoiceResponse) {
|
|
103
|
+
userActionCallback?.(UserActionEnum.SEARCH_ORGANIZATION_NUMBER, {
|
|
104
|
+
organizationNumber: data.organizationNumber,
|
|
105
|
+
cvr: data.cvr,
|
|
106
|
+
gln: data.gln,
|
|
107
|
+
found: !!receivesInvoice
|
|
108
|
+
});
|
|
109
|
+
}
|
|
108
110
|
|
|
109
111
|
if (invoiceResponse && !receivesInvoice) {
|
|
110
112
|
setLoading(false);
|