Another Syntax fix

This commit is contained in:
Neshura 2024-05-20 13:25:29 +02:00
parent 9cda1d3434
commit 3045d9c4f8
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -86,9 +86,9 @@
return volume; return volume;
}) })
let maxWeight = derived(totalThrust / (gravity * 9.81)) let maxWeight = $derived(totalThrust / (gravity * 9.81))
let maxCargoWeight = $derived(maxWeight -= totalVolume * weightPerVolume) let maxCargoWeight = $derived(maxWeight - totalVolume * weightPerVolume)
function weightConversion(weight: number): string { function weightConversion(weight: number): string {
if (weight > 1000) { if (weight > 1000) {