aboutsummaryrefslogtreecommitdiff
path: root/src/models/cashoutMethodSlice.ts
diff options
context:
space:
mode:
authorMax Nanis2025-06-23 17:20:31 +0700
committerMax Nanis2025-06-23 17:20:31 +0700
commit8138549f64403874eb7c7ddfbde1cc2cc2c03695 (patch)
treeff16ff5bf7b0a5454fd181d178a6f799b9141d64 /src/models/cashoutMethodSlice.ts
parent5e8b1b89bfffd0202bc6c5f64aac943053d79d32 (diff)
downloadpanel-ui-8138549f64403874eb7c7ddfbde1cc2cc2c03695.tar.gz
panel-ui-8138549f64403874eb7c7ddfbde1cc2cc2c03695.zip
Typescript validation finally passes.
Diffstat (limited to 'src/models/cashoutMethodSlice.ts')
-rw-r--r--src/models/cashoutMethodSlice.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/models/cashoutMethodSlice.ts b/src/models/cashoutMethodSlice.ts
index a6d0211..8e3a957 100644
--- a/src/models/cashoutMethodSlice.ts
+++ b/src/models/cashoutMethodSlice.ts
@@ -12,7 +12,7 @@ const cashoutMethodSlice = createSlice({
setCashoutMethods(state, action: PayloadAction<CashoutMethodOut[]>) {
return action.payload;
},
- redeem: {
+ // redeemMethod: {
// let res = {'status': false, 'msg': ''};
// let cashout_method = this.collection.getCashoutMethod();
// let req_amt = +this.ui.amount.val();
@@ -61,7 +61,7 @@ const cashoutMethodSlice = createSlice({
// res["status"] = true;
// return res;
// },
- }
+ // }
}
})
@@ -73,6 +73,8 @@ export default cashoutMethodSlice.reducer
export const selectCashoutMethods = (state: RootState) => state.cashoutMethods
export const selectFixedCashoutMethods = (state: RootState) =>
+ // @ts-ignore
state.cashoutMethods.filter(cm => cm.data.value_type === "fixed")
export const selectVariableCashoutMethods = (state: RootState) =>
- state.cashoutMethods.filter(cm => cm.data.value_type === "variable")
+ // @ts-ignore
+ state.cashoutMethods.filter(cm => cm.data.value_type === "variable") \ No newline at end of file