fix: check type variable
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2025-02-24 16:08:40 +01:00
parent 6954cd599a
commit ab5ae580b3
1 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,11 @@ defineExpose({ save });
<template>
<QPopupProxy ref="QPopupProxyRef" data-cy="ticketEditManaProxy">
<div class="container">
<QSpinner v-if="!mana" color="primary" size="md" />
<QSpinner
v-if="!(typeof mana === 'number' && mana >= 0)"
color="primary"
size="md"
/>
<div v-else>
<div class="header">Mana: {{ toCurrency(mana) }}</div>
<div class="q-pa-md">