Skip to content

Commit 9a13e97

Browse files
authored
fix: crash on charges.vue (#4765)
1 parent a5602ff commit 9a13e97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/frontend/src/pages/settings/billing/charges.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<div class="flex flex-col gap-1">
1616
<div class="flex items-center gap-1">
1717
<span class="font-bold text-primary">
18-
<template v-if="charge.product.metadata.type === 'midas'"> Modrinth Plus </template>
19-
<template v-else-if="charge.product.metadata.type === 'pyro'">
18+
<template v-if="charge.product?.metadata?.type === 'midas'"> Modrinth Plus </template>
19+
<template v-else-if="charge.product?.metadata?.type === 'pyro'">
2020
Modrinth Servers
2121
</template>
22-
<template v-else> Unknown product </template>
22+
<template v-else> Medal Server Trial </template>
2323
<template v-if="charge.subscription_interval">
2424
{{ charge.subscription_interval }}
2525
</template>

0 commit comments

Comments
 (0)