fix: crash on charges.vue (#4765)

This commit is contained in:
Calum H.
2025-11-12 04:00:39 +00:00
committed by GitHub
parent a5602ff18c
commit 9a13e977a0

View File

@@ -15,11 +15,11 @@
<div class="flex flex-col gap-1"> <div class="flex flex-col gap-1">
<div class="flex items-center gap-1"> <div class="flex items-center gap-1">
<span class="font-bold text-primary"> <span class="font-bold text-primary">
<template v-if="charge.product.metadata.type === 'midas'"> Modrinth Plus </template> <template v-if="charge.product?.metadata?.type === 'midas'"> Modrinth Plus </template>
<template v-else-if="charge.product.metadata.type === 'pyro'"> <template v-else-if="charge.product?.metadata?.type === 'pyro'">
Modrinth Servers Modrinth Servers
</template> </template>
<template v-else> Unknown product </template> <template v-else> Medal Server Trial </template>
<template v-if="charge.subscription_interval"> <template v-if="charge.subscription_interval">
{{ charge.subscription_interval }} {{ charge.subscription_interval }}
</template> </template>