@sprucelabs/spruce-appointment-utils 7.3.13 → 7.3.14
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.
|
@@ -118,8 +118,8 @@ export default class AbstractCapabilityCardViewController extends AbstractViewCo
|
|
|
118
118
|
yield this.activeRecordCardVc.load();
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
calculateDuration(
|
|
122
|
-
const duration =
|
|
121
|
+
calculateDuration(timeBlocks) {
|
|
122
|
+
const duration = timeBlocks
|
|
123
123
|
.map((a) => a.durationMinutes)
|
|
124
124
|
.reduce(function (a, b) {
|
|
125
125
|
return a + b;
|
|
@@ -105,8 +105,8 @@ class AbstractCapabilityCardViewController extends heartwood_view_controllers_1.
|
|
|
105
105
|
await this.loadCapabilities();
|
|
106
106
|
await this.activeRecordCardVc.load();
|
|
107
107
|
}
|
|
108
|
-
calculateDuration(
|
|
109
|
-
const duration =
|
|
108
|
+
calculateDuration(timeBlocks) {
|
|
109
|
+
const duration = timeBlocks
|
|
110
110
|
.map((a) => a.durationMinutes)
|
|
111
111
|
.reduce(function (a, b) {
|
|
112
112
|
return a + b;
|