Skip to content

Commit

Permalink
Fix pr #390: Fix issue #389: Jutsu Level Transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Feb 20, 2025
1 parent b859f65 commit edd2344
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/src/app/jutsus/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,19 @@ export default function MyJutsu() {
// Transfer costs
const cutoffDate = new Date();
cutoffDate.setDate(cutoffDate.getDate() - JUTSU_TRANSFER_DAYS);
const getFreeTransfers = (federalStatus: string) => {
switch (federalStatus) {
case "GOLD":
return 5;
case "SILVER":
return 4;
case "NORMAL":
return 3;
default:
return 2;
}
};

const { data: recentTransfers } = api.jutsu.getRecentTransfers.useQuery(
{ cutoffDate },
{ enabled: !!userData },
Expand Down

0 comments on commit edd2344

Please sign in to comment.