Skip to content

Commit

Permalink
admin: Fix conditions for payment_required when staging
Browse files Browse the repository at this point in the history
... changes
  • Loading branch information
ThrRip committed Dec 23, 2023
1 parent e388e2c commit ec1f16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/pages/playlist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function viewPlaylistStageChanges (changes: Song) {
if (changesValid) {
const changesPrevious = viewPlaylistChangesData.value.find(song => song.$id === changes.$id)
// @ts-ignore
changes.payment_required = Boolean(changes.payment_amount ?? song.payment_required)
changes.payment_required = Boolean(changes.payment_amount)
changesFieldsAccepted.forEach((field) => {
// @ts-ignore
if (changes[field] === undefined) { changes[field] = changesPrevious ? changesPrevious[field] : song[field] }
Expand Down

0 comments on commit ec1f16e

Please sign in to comment.