Refaktorisierungs-Optionen und Fix für Zahlen-Parsing

This commit is contained in:
2026-06-06 20:02:23 +02:00
parent b5b7866395
commit 2629ef1f12
4 changed files with 191 additions and 25 deletions

View File

@@ -79,7 +79,7 @@
<div class="text-center sm:pt-6">
<button type="button"
@click="navigate(
$el.dataset.swapUrl, prettyNumber(convert(prepareValue(inputValue))))"
$el.dataset.swapUrl, prettyNumber(convert(parseNumber(inputValue))))"
data-swap-url="/{{ .Params.to }}-in-{{ .Params.from }}/"
class="inline-flex items-center text-sm
font-medium text-primary
@@ -145,7 +145,7 @@
</label>
<input type="text" id="result"
disabled
:value="prettyNumber(convert(prepareValue(inputValue)))"
:value="prettyNumber(convert(parseNumber(inputValue)))"
class="textinput mt-1 block w-full">
</div>
</div>