Skip to content

Commit

Permalink
fix: invoice status
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Jul 23, 2024
1 parent b49a8ec commit 5cc2e70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/app/src/components/invoice/InvoiceStatusAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
<invoice-status-icon :model-value="modelValue" size="md" />
</q-avatar>
<q-icon
v-if="
[InvoiceStatus.BILL && InvoiceStatus.OPEN].includes(modelValue) && paid
"
v-if="[InvoiceStatus.BILL, InvoiceStatus.OPEN].includes(modelValue) && paid"
name="check"
color="green"
rounded
Expand All @@ -25,7 +23,7 @@ import { useLang } from '../../lang/index.js'
import { InvoiceStatus } from '@modular-api/fastify-checkout/types'
interface Props {
modelValue: 'concept' | 'open' | 'paid' | 'canceled' | 'bill'
modelValue: InvoiceStatus
paid?: boolean
}
const props = defineProps<Props>()
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/invoice/InvoiceStatusIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const InvoiceStatusColors = {
}
interface Props {
modelValue: 'concept' | 'open' | 'paid' | 'canceled' | 'bill'
modelValue: InvoiceStatus
}
const props = defineProps<Props>()
const lang = useLang()
Expand Down

0 comments on commit 5cc2e70

Please sign in to comment.