mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 22:34:23 +01:00
revert bg color until I can decide, cleanup lints
This commit is contained in:
@@ -25,6 +25,7 @@ export function AmountEditable(props: { amountSats: number | bigint, setAmountSa
|
||||
setIsFullscreen(!isFullscreen());
|
||||
}
|
||||
|
||||
// TODO: validate this doesn't need to be reactive and can be "initialAmountSats"
|
||||
const [displayAmount, setDisplayAmount] = createSignal(props.amountSats.toString() || "0");
|
||||
|
||||
let inputRef!: HTMLInputElement;
|
||||
@@ -100,7 +101,7 @@ export function AmountEditable(props: { amountSats: number | bigint, setAmountSa
|
||||
})
|
||||
|
||||
const prettyPrint = createMemo(() => {
|
||||
let parsed = Number(displayAmount());
|
||||
const parsed = Number(displayAmount());
|
||||
if (isNaN(parsed)) {
|
||||
return displayAmount();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user