Skip to content

Commit

Permalink
refactor: remove taxes system
Browse files Browse the repository at this point in the history
  • Loading branch information
ySnoopyDogy committed Jan 20, 2024
1 parent 65597f4 commit 9fdec38
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion locales/en-US/bicho.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"results": "Results",
"no-players": "Nobody bet on this draw!",
"bet": "Bet {{bet}} ⭐",
"profit": "Won {{profit}} ⭐ ({{taxed}} %)",
"profit": "Won {{profit}} ⭐",
"choice": "Choice: {{option}}",
"next-page": "Next Page",
"prev-page": "Previous Page",
Expand Down
2 changes: 1 addition & 1 deletion locales/pt-BR/bicho.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"no-players": "Ninguém apostou nesse sorteio!",
"biggest-profit": "Maior Ganho",
"bet": "Apostou {{bet}} ⭐",
"profit": "Ganhou {{profit}} ⭐ ({{taxed}} %)",
"profit": "Ganhou {{profit}} ⭐",
"choice": "Escolha: {{option}}",
"next-page": "Próxima Página",
"prev-page": "Página Anterior",
Expand Down
1 change: 0 additions & 1 deletion src/components/BichoPlayerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const BichoPlayerCard = ({
{t(won ? 'profit' : 'bet', {
bet: player.bet,
profit: player.profit,
taxed: (((player.profit - player.taxed) / player.profit) * 100).toFixed(2),
})}
</p>
<p className='text-white'>{t('choice', { option: optionBetToText(player.option, t) })}</p>
Expand Down
1 change: 0 additions & 1 deletion src/services/api/api.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ interface BichoPlayer {
id: string;
bet: number;
profit: number;
taxed: number;
didWin: boolean;
option: string;
}
Expand Down

0 comments on commit 9fdec38

Please sign in to comment.