Calculator default value

This commit is contained in:
softsimon
2025-07-19 10:57:08 +07:00
parent 048bf275e4
commit 1ea9829fd5

View File

@@ -86,6 +86,8 @@ export class CalculatorComponent implements OnInit {
this.form.get('bitcoin').setValue(bitcoinRate, { emitEvent: false });
});
// Default form with 1 BTC
this.form.get('bitcoin').setValue(1, { emitEvent: true });
}
transformInput(name: string): void {