Skip to content

Commit cf552f6

Browse files
authored
Merge pull request #734 from kelly5454/master
fix: Type error when redeeming gift card
2 parents fb266f0 + 3754f7d commit cf552f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Services/GiftCardService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ protected function giveRewards(array $rewards): void
173173
$userService->assignPlan(
174174
$this->user,
175175
$plan,
176-
$rewards['plan_validity_days'] ?? null
176+
$rewards['plan_validity_days'] ?? 0
177177
);
178178
}
179179
} else {

0 commit comments

Comments
 (0)