Skip to content

Commit

Permalink
fixed type error on transpilation step
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Ruf committed Aug 14, 2023
1 parent 76f218d commit 0a2ea2e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class="max-h-[62px] border-b-2 border-gray-200 text-right text-[12px] xl:text-[18px]"
>
<td class="py-2 text-left">
{{ `${transaction.name}, ${transaction.firstName}` }}
{{ `${(transaction as IUserTransaction).name}, ${(transaction as IUserTransaction).firstName}` }}
</td>
<td class="py-2 text-right">
{{ new Intl.NumberFormat(locale, { style: 'currency', currency: 'EUR' }).format(parseFloat((transaction as IUserTransaction).amount)) }}
Expand All @@ -21,7 +21,7 @@
class="flex h-full w-full content-center justify-end text-primary"
>
<svg
v-if="transaction.paymethod !== null && transaction.paymethod === '0'"
v-if="(transaction as IUserTransaction).paymethod !== null && (transaction as IUserTransaction).paymethod === '0'"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
Expand All @@ -32,8 +32,8 @@
class="h-[24px] w-[24px]"
>
<g>
<path d="M918,239.3c-9.2-11.4-20-21.8-31.9-31.1c1.6,29.5-1.1,61-8.3,94.2c-19.4,90.9-65.8,168.2-134.2,223.5c-68.4,55.2-153.7,84.4-246.8,84.4H361l-44,205.9c-8.6,40.4-44.9,69.7-86.2,69.7h-61.2l-11,50.6c-2.8,13,0.4,26.6,8.7,37c8.4,10.4,21,16.4,34.3,16.4h149.6c20.8,0,38.8-14.5,43.1-34.9l51.4-240.8h171.4c82.9,0,158.7-25.8,219.1-74.6c60.5-48.8,101.6-117.4,118.8-198.4C972.7,359.5,960.2,291.5,918,239.3z"/>
<path d="M273.9,807l51.4-240.8h171.4c82.9,0,158.7-25.8,219.1-74.6c60.5-48.8,101.6-117.4,118.8-198.4c17.5-81.9,5-149.8-37.2-202C757,41.1,687.7,10,616.7,10H243.2c-20.7,0-38.6,14.4-43.1,34.7l-162,743.8c-2.8,13,0.4,26.6,8.7,37c8.4,10.4,21,16.4,34.3,16.4h149.6C251.6,841.9,269.6,827.4,273.9,807z M411.1,179.4h117.5c27.7,0,52.4,11.6,67.8,31.8c16.4,21.5,21.2,51.1,13.2,81.4c-0.1,0.4-0.2,0.8-0.3,1.2C594.5,356.2,533,407,472.3,407H359.7L411.1,179.4z"/>
<path d="M918,239.3c-9.2-11.4-20-21.8-31.9-31.1c1.6,29.5-1.1,61-8.3,94.2c-19.4,90.9-65.8,168.2-134.2,223.5c-68.4,55.2-153.7,84.4-246.8,84.4H361l-44,205.9c-8.6,40.4-44.9,69.7-86.2,69.7h-61.2l-11,50.6c-2.8,13,0.4,26.6,8.7,37c8.4,10.4,21,16.4,34.3,16.4h149.6c20.8,0,38.8-14.5,43.1-34.9l51.4-240.8h171.4c82.9,0,158.7-25.8,219.1-74.6c60.5-48.8,101.6-117.4,118.8-198.4C972.7,359.5,960.2,291.5,918,239.3z" />
<path d="M273.9,807l51.4-240.8h171.4c82.9,0,158.7-25.8,219.1-74.6c60.5-48.8,101.6-117.4,118.8-198.4c17.5-81.9,5-149.8-37.2-202C757,41.1,687.7,10,616.7,10H243.2c-20.7,0-38.6,14.4-43.1,34.7l-162,743.8c-2.8,13,0.4,26.6,8.7,37c8.4,10.4,21,16.4,34.3,16.4h149.6C251.6,841.9,269.6,827.4,273.9,807z M411.1,179.4h117.5c27.7,0,52.4,11.6,67.8,31.8c16.4,21.5,21.2,51.1,13.2,81.4c-0.1,0.4-0.2,0.8-0.3,1.2C594.5,356.2,533,407,472.3,407H359.7L411.1,179.4z" />
</g>
</svg>
<CurrencyEuroIcon
Expand Down

0 comments on commit 0a2ea2e

Please sign in to comment.