File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
feature-billing/src/wasmJsMain/kotlin/com/mooncloak/website/feature/billing Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ public class BillingViewModel public constructor(
125
125
if (invoice == null ) {
126
126
invoice = getInvoice(
127
127
productId = productId,
128
- token = currentState.token?.value,
129
128
currencyCode = currentState.selectedCryptoCurrency.currencyCode,
130
129
currentInvoices = currentState.invoices
131
130
)
@@ -177,7 +176,6 @@ public class BillingViewModel public constructor(
177
176
if (invoice == null && productId != null ) {
178
177
invoice = getInvoice(
179
178
productId = productId,
180
- token = currentState.token?.value,
181
179
currencyCode = currentState.selectedCryptoCurrency.currencyCode,
182
180
currentInvoices = currentState.invoices
183
181
)
@@ -299,7 +297,6 @@ public class BillingViewModel public constructor(
299
297
private suspend fun getInvoice (
300
298
currencyCode : Currency .Code ,
301
299
productId : String? ,
302
- token : String? ,
303
300
currentInvoices : Map <CryptoCurrency , CryptoInvoice ?>
304
301
): CryptoInvoice ? {
305
302
CryptoCurrency [currencyCode]?.let { currentInvoices[it] }?.let { return it }
@@ -308,7 +305,6 @@ public class BillingViewModel public constructor(
308
305
309
306
return billingApi.getInvoice(
310
307
productId = productId,
311
- token = token,
312
308
currencyCode = currencyCode
313
309
)
314
310
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public interface BillingApi {
12
12
13
13
public suspend fun getInvoice (
14
14
productId : String ,
15
- token : String? ,
15
+ token : String? = null ,
16
16
currencyCode : Currency .Code
17
17
): CryptoInvoice
18
18
You can’t perform that action at this time.
0 commit comments