@@ -103,42 +103,42 @@ window.app = Vue.createApp({
103103 }
104104 } ,
105105 computed : {
106- amount : function ( ) {
106+ amount ( ) {
107107 if ( ! this . stack . length ) return 0.0
108108 if ( this . currency == 'sats' ) return Number ( this . stack . join ( '' ) )
109109 return (
110110 this . stack . reduce ( ( acc , dig ) => acc * 10 + dig , 0 ) *
111111 ( this . currency == 'sats' ? 1 : 0.01 )
112112 )
113113 } ,
114- amountFormatted : function ( ) {
114+ amountFormatted ( ) {
115115 return this . formatAmount ( this . amount , this . currency )
116116 } ,
117117 totalFormatted ( ) {
118118 return this . formatAmount ( this . total , this . currency )
119119 } ,
120- amountWithTipFormatted : function ( ) {
120+ amountWithTipFormatted ( ) {
121121 return this . formatAmount ( this . amount + this . tipAmount , this . currency )
122122 } ,
123- sat : function ( ) {
123+ sat ( ) {
124124 if ( ! this . exchangeRate ) return 0
125125 return Math . ceil ( this . amount * this . exchangeRate )
126126 } ,
127- totalSat : function ( ) {
127+ totalSat ( ) {
128128 if ( ! this . exchangeRate ) return 0
129129 return Math . ceil ( this . total * this . exchangeRate )
130130 } ,
131- tipAmountSat : function ( ) {
131+ tipAmountSat ( ) {
132132 if ( ! this . exchangeRate ) return 0
133133 return Math . ceil ( this . tipAmount * this . exchangeRate )
134134 } ,
135- tipAmountFormatted : function ( ) {
135+ tipAmountFormatted ( ) {
136136 return LNbits . utils . formatSat ( this . tipAmountSat )
137137 } ,
138- fsat : function ( ) {
138+ fsat ( ) {
139139 return LNbits . utils . formatSat ( this . sat )
140140 } ,
141- totalfsat : function ( ) {
141+ totalfsat ( ) {
142142 return LNbits . utils . formatSat ( this . totalSat )
143143 } ,
144144 roundToSugestion ( ) {
@@ -656,10 +656,9 @@ window.app = Vue.createApp({
656656 Quasar . Loading . hide ( )
657657 } else {
658658 LNbits . api
659- . request ( 'GET' , `/tpos/ api/v1/rate/${ this . currency } ` )
659+ . request ( 'GET' , `/api/v1/rate/${ this . currency } ` )
660660 . then ( response => {
661661 this . exchangeRate = response . data . rate
662- console . log ( this . exchangeRate )
663662 Quasar . Loading . hide ( )
664663 } )
665664 . catch ( e => console . error ( e ) )
0 commit comments