Skip to content

Commit 4c343e0

Browse files
authored
Merge pull request #1770 from kunalbedi/master
Small edit in ns-transaction.vue for correcting recurrence transaction not working
2 parents c946503 + 01758c4 commit 4c343e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/ts/pages/dashboard/transactions/ns-transaction.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export default {
208208
* for the expense we know supports
209209
* recurring behavior
210210
*/
211-
if ( [ 'ns.recurring-transactions', 'ns.salary-transactions' ].includes( this.selectedConfiguration.identifier ) ) {
211+
if ( [ 'ns.recurring-transaction', 'ns.salary-transaction' ].includes( this.selectedConfiguration.identifier ) ) {
212212
tabs.push({
213213
label: __( 'Conditions' ),
214214
identifier: 'recurrence'
@@ -263,7 +263,7 @@ export default {
263263
*/
264264
result.fields.forEach( field => {
265265
if ( field.name === 'recurring' ) {
266-
if ([ 'ns.recurring-transactions', 'ns.salary-transactions' ].includes( result.identifier ) ) {
266+
if ([ 'ns.recurring-transaction', 'ns.salary-transaction' ].includes( result.identifier ) ) {
267267
field.value = true;
268268
} else {
269269
field.value = false;
@@ -337,4 +337,4 @@ export default {
337337
}
338338
339339
}
340-
</script>
340+
</script>

0 commit comments

Comments
 (0)