fix field Wallet and Wallet Rule

- sync form field with response field
- sync group with wallet on create Wallet Rule
This commit is contained in:
Wikzyy
2025-04-10 13:55:00 +07:00
parent 07dfcf6074
commit 0c049086e9
3 changed files with 39 additions and 19 deletions

View File

@ -222,7 +222,7 @@ const ManageWalletRuleContextProvider = ({ children }: { children: React.ReactNo
order_direction: sorting[0].desc == false ? 'ASC' : 'DESC',
filter: JSON.stringify(filter)
});
console.log(response?.data);
// console.log(response?.data);
setWalletRules(response?.data.list);
return { data: response?.data.list, totalCount: response?.data.total_count };
} catch (error) {