@unimaze/billing 0.3.0 → 0.3.1

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.
@@ -96,8 +96,6 @@ var EditableCell = function (props) {
96
96
  return [3 /*break*/, 3];
97
97
  case 2:
98
98
  errInfo_1 = _a.sent();
99
- // tslint:disable-next-line:no-console
100
- console.log('Save failed:', errInfo_1);
101
99
  return [3 /*break*/, 3];
102
100
  case 3: return [2 /*return*/];
103
101
  }
@@ -137,6 +137,10 @@ var CreateInvoice = function (props) {
137
137
  .then(function (submitDocumentResponse) {
138
138
  antd_1.message.success("successfully uploaded attachment " + nextFileDescription);
139
139
  setSubmitting(false);
140
+ })
141
+ .catch(function (documentSendingErrorMessage) {
142
+ antd_1.message.error("error uploaded attachment " + nextFileDescription + " - " + documentSendingErrorMessage.message);
143
+ setSubmitting(false);
140
144
  });
141
145
  };
142
146
  while (attachments.length > 0) {
@@ -151,6 +155,7 @@ var CreateInvoice = function (props) {
151
155
  setBillingLinesEditableIndex(0);
152
156
  })
153
157
  .catch(function (error) {
158
+ setSubmitting(false);
154
159
  antd_1.message.error(error.message);
155
160
  });
156
161
  };
@@ -17,7 +17,7 @@ interface Props extends InjectedIntlProps {
17
17
  onlyLabelOnFirstInList?: boolean;
18
18
  index?: number;
19
19
  }
20
- declare const _default: React.ComponentClass<Pick<Props, "style" | "initialValue" | "receiverRequirementsKey" | "defaultLabel" | "defaultIsRequired" | "fieldName" | "additionalRules" | "verticalLabels" | "onlyLabelOnFirstInList" | "index">, any> & {
20
+ declare const _default: React.ComponentClass<Pick<Props, "style" | "initialValue" | "fieldName" | "receiverRequirementsKey" | "defaultLabel" | "defaultIsRequired" | "additionalRules" | "verticalLabels" | "onlyLabelOnFirstInList" | "index">, any> & {
21
21
  WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
22
22
  };
23
23
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unimaze/billing",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",