Skip to content

Commit

Permalink
patch(refills): forgot to fix one page
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed Aug 24, 2023
1 parent 695b2f4 commit 7eb6285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/components/comptoir/refills.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
class="text-sm text-white self-center bg-red-500 rounded-xl p-2"
on:click={() => {
refillsApi()
.patchRefillId(refill.account_id, refill.id, 'canceled', {
.patchRefillId(refill.account_id, refill.id, 'canceled', refill.type, {
withCredentials: true
})
.then(() => {
Expand All @@ -84,7 +84,7 @@
class="text-sm text-white self-center bg-red-500 rounded-xl p-2"
on:click={() => {
refillsApi()
.patchRefillId(refill.account_id, refill.id, 'valid', { withCredentials: true })
.patchRefillId(refill.account_id, refill.id, 'valid', refill.type, { withCredentials: true })
.then(() => {
reloadRefills();
});
Expand Down

0 comments on commit 7eb6285

Please sign in to comment.