@@ -103,42 +103,42 @@ window.app = Vue.createApp({
103
103
}
104
104
} ,
105
105
computed : {
106
- amount : function ( ) {
106
+ amount ( ) {
107
107
if ( ! this . stack . length ) return 0.0
108
108
if ( this . currency == 'sats' ) return Number ( this . stack . join ( '' ) )
109
109
return (
110
110
this . stack . reduce ( ( acc , dig ) => acc * 10 + dig , 0 ) *
111
111
( this . currency == 'sats' ? 1 : 0.01 )
112
112
)
113
113
} ,
114
- amountFormatted : function ( ) {
114
+ amountFormatted ( ) {
115
115
return this . formatAmount ( this . amount , this . currency )
116
116
} ,
117
117
totalFormatted ( ) {
118
118
return this . formatAmount ( this . total , this . currency )
119
119
} ,
120
- amountWithTipFormatted : function ( ) {
120
+ amountWithTipFormatted ( ) {
121
121
return this . formatAmount ( this . amount + this . tipAmount , this . currency )
122
122
} ,
123
- sat : function ( ) {
123
+ sat ( ) {
124
124
if ( ! this . exchangeRate ) return 0
125
125
return Math . ceil ( this . amount * this . exchangeRate )
126
126
} ,
127
- totalSat : function ( ) {
127
+ totalSat ( ) {
128
128
if ( ! this . exchangeRate ) return 0
129
129
return Math . ceil ( this . total * this . exchangeRate )
130
130
} ,
131
- tipAmountSat : function ( ) {
131
+ tipAmountSat ( ) {
132
132
if ( ! this . exchangeRate ) return 0
133
133
return Math . ceil ( this . tipAmount * this . exchangeRate )
134
134
} ,
135
- tipAmountFormatted : function ( ) {
135
+ tipAmountFormatted ( ) {
136
136
return LNbits . utils . formatSat ( this . tipAmountSat )
137
137
} ,
138
- fsat : function ( ) {
138
+ fsat ( ) {
139
139
return LNbits . utils . formatSat ( this . sat )
140
140
} ,
141
- totalfsat : function ( ) {
141
+ totalfsat ( ) {
142
142
return LNbits . utils . formatSat ( this . totalSat )
143
143
} ,
144
144
roundToSugestion ( ) {
@@ -656,10 +656,9 @@ window.app = Vue.createApp({
656
656
Quasar . Loading . hide ( )
657
657
} else {
658
658
LNbits . api
659
- . request ( 'GET' , `/tpos/ api/v1/rate/${ this . currency } ` )
659
+ . request ( 'GET' , `/api/v1/rate/${ this . currency } ` )
660
660
. then ( response => {
661
661
this . exchangeRate = response . data . rate
662
- console . log ( this . exchangeRate )
663
662
Quasar . Loading . hide ( )
664
663
} )
665
664
. catch ( e => console . error ( e ) )
0 commit comments