From 2e8771fead8b5fdb0d0a5b8f6c033e1ed53fdf2d Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Mon, 28 Oct 2024 16:54:58 +0800 Subject: [PATCH] Laravel Vapor - Fix a front end display inaccurate on user UI when editing recipient bank details --- app/Http/Resources/TransactionResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Resources/TransactionResource.php b/app/Http/Resources/TransactionResource.php index 8f2f1e66..c2d20a85 100644 --- a/app/Http/Resources/TransactionResource.php +++ b/app/Http/Resources/TransactionResource.php @@ -35,8 +35,8 @@ class TransactionResource extends JsonResource $isEditedBankRecipient = $this->bank ? true : false; } //Check if Transaction of type PAYMENT has an override for recipient bank - ends - $days = $this->created_at->endOfDay()->addWeekdays($booking->service_id === 3 ? 3 : 1); + $days = $this->created_at->endOfDay()->addWeekdays($booking->service_id === 3 ? 3 : 1); return [ 'id' => $this->id, 'booking' => new BookingResource($booking),